Thread (38 messages) 38 messages, 7 authors, 2018-12-05

Re: [PATCH] dma-mapping: fix lack of DMA address assignment in generic remap allocator

From: Thierry Reding <hidden>
Date: 2018-12-05 12:36:03
Also in: linux-iommu, lkml

On Wed, Dec 05, 2018 at 11:14:01AM +0100, Marek Szyprowski wrote:
Commit bfd56cd60521 ("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: bfd56cd60521 ("dma-mapping: support highmem in the generic remap allocator")
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
---
 kernel/dma/remap.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
Tested-by: Thierry Reding <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help