]> asedeno.scripts.mit.edu Git - linux.git/commit
swiotlb: fix inversed DMA_ATTR_NO_WARN test
authorMichel Dänzer <michel.daenzer@amd.com>
Tue, 1 May 2018 13:24:11 +0000 (15:24 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 2 May 2018 12:48:55 +0000 (14:48 +0200)
commit892a0be43edd63e1cd228af3453a064e9e94f08e
tree16c2eccb0973ca293540b70f25a49059d5b872d4
parent2d618bdf71635463a4aa4ad0fe46ec852292bc0c
swiotlb: fix inversed DMA_ATTR_NO_WARN test

The result was printing the warning only when we were explicitly asked
not to.

Cc: stable@vger.kernel.org
Fixes: 0176adb004065d6815a8e67946752df4cd947c5b "swiotlb: refactor
 coherent buffer allocation"
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>.
Signed-off-by: Christoph Hellwig <hch@lst.de>
lib/swiotlb.c