]> git.baikalelectronics.ru Git - kernel.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)
commitc1b808a1ddbe3d46e20acf773fd91239cc148260
tree16c2eccb0973ca293540b70f25a49059d5b872d4
parent9c374bcf5b59df55fb7e864517789478311594af
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: 7657934ab46953c5ae80ab2af0fe6e5ce8232f18 "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