diff options
author | Alexander Duyck <alexander.h.duyck@linux.intel.com> | 2018-10-03 16:48:07 -0700 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2018-10-05 09:15:15 +0200 |
commit | 1fc8e6423edb4bba365b0780c2fcddfb921b24b2 (patch) | |
tree | a628cadf739b7d945e5c2375365b1cfa6f8906cc /kernel/dma/debug.c | |
parent | 6db37ad7c27bda2f62d1ef6ad0496e359c562c1a (diff) | |
download | lwn-1fc8e6423edb4bba365b0780c2fcddfb921b24b2.tar.gz lwn-1fc8e6423edb4bba365b0780c2fcddfb921b24b2.zip |
dma-direct: fix return value of dma_direct_supported
It appears that in commit 9d7a224b463e ("dma-direct: always allow dma mask
<= physiscal memory size") the logic of the test was changed from a "<" to
a ">=" however I don't see any reason for that change. I am assuming that
there was some additional change planned, specifically I suspect the logic
was intended to be reversed and possibly used for a return. Since that is
the case I have gone ahead and done that.
This addresses issues I had on my system that prevented me from booting
with the above mentioned commit applied on an x86_64 system w/ Intel IOMMU.
Fixes: 9d7a224b463e ("dma-direct: always allow dma mask <= physiscal memory size")
Signed-off-by: Alexander Duyck <alexander.h.duyck@linux.intel.com>
Acked-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'kernel/dma/debug.c')
0 files changed, 0 insertions, 0 deletions