Skip to content
Commit a1da439c authored by Marek Szyprowski's avatar Marek Szyprowski Committed by Christoph Hellwig
Browse files

dma-mapping: fix lack of DMA address assignment in generic remap allocator



Commit bfd56cd6 ("dma-mapping: support highmem in the generic remap
allocator") replaced dma_direct_alloc_pages() with __dma_direct_alloc_pages(),
which doesn't set dma_handle and zero allocated memory. Fix it by doing this
directly in the caller function.

Fixes: bfd56cd6 ("dma-mapping: support highmem in the generic remap allocator")
Signed-off-by: default avatarMarek Szyprowski <m.szyprowski@samsung.com>
Tested-by: default avatarThierry Reding <treding@nvidia.com>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent f04b951f
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