Skip to content
Commit 8270f3a1 authored by Christoph Hellwig's avatar Christoph Hellwig
Browse files

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: bfd56cd6 ("dma-mapping: support highmem in the generic remap allocator")
Reported-by: default avatarLiviu Dudau <liviu@dudau.co.uk>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Tested-by: default avatarLiviu Dudau <liviu@dudau.co.uk>
parent 06f55fd2
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment