]> 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)
commit5920cb2714efd82481bdf0bfc55a6ad85782de0a
tree16c2eccb0973ca293540b70f25a49059d5b872d4
parent68a9b4237dbd584b4f65dfaf068f2ea138c97fb3
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: 872c21f6a33afe4eebb8c7e7d2ca452b9d68d289 "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