commit | 8270f3a11ceef64bdb0ab141180e8d2f17c619ec | [log] [tgz] |
---|---|---|
author | Christoph Hellwig <hch@lst.de> | Fri Jan 04 18:31:48 2019 +0100 |
committer | Christoph Hellwig <hch@lst.de> | Sat Jan 05 08:28:29 2019 +0100 |
tree | 15e02d8bce01367246670de4ff4c533ea9d46244 | |
parent | 06f55fd2d22742ed7e725124dfea68936d12ce40 [diff] |
dma-direct: fix DMA_ATTR_NO_KERNEL_MAPPING for remapped allocations We need to return a dma_addr_t even if we don't have a kernel mapping. Do so by consolidating the phys_to_dma call in a single place and jump to it from all the branches that return successfully. Fixes: bfd56cd60521 ("dma-mapping: support highmem in the generic remap allocator") Reported-by: Liviu Dudau <liviu@dudau.co.uk Signed-off-by: Christoph Hellwig <hch@lst.de> Tested-by: Liviu Dudau <liviu@dudau.co.uk>