]> git.baikalelectronics.ru Git - kernel.git/commit
dma-mapping: fix lack of DMA address assignment in generic remap allocator
authorMarek Szyprowski <m.szyprowski@samsung.com>
Wed, 5 Dec 2018 10:14:01 +0000 (11:14 +0100)
committerChristoph Hellwig <hch@lst.de>
Wed, 5 Dec 2018 13:49:10 +0000 (05:49 -0800)
commit2df65a11494d7f279a24d69229b6e0df9b6f54b9
treea5b96286aa000411d10f7650df08405da3d84067
parent746772ceea2133f45a528a5d1d8021711c0a7e90
dma-mapping: fix lack of DMA address assignment in generic remap allocator

Commit 1c7d196864ed ("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: 1c7d196864ed ("dma-mapping: support highmem in the generic remap allocator")
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Tested-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
kernel/dma/remap.c