Skip to content

Commit 283f1e3

Browse files
lynxeye-devkraxel
authored andcommitted
udmabuf: actually unmap the scatterlist
unmap_udmabuf fails to actually unmap the scatterlist, leaving dangling mappings around. Fixes: fbb0de7 ("Add udmabuf misc device") Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Link: http://patchwork.freedesktop.org/patch/msgid/20190604202331.17482-1-l.stach@pengutronix.de Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
1 parent 89a4aac commit 283f1e3

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎drivers/dma-buf/udmabuf.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ static void unmap_udmabuf(struct dma_buf_attachment *at,
7777
struct sg_table *sg,
7878
enum dma_data_direction direction)
7979
{
80+
dma_unmap_sg(at->dev, sg->sgl, sg->nents, direction);
8081
sg_free_table(sg);
8182
kfree(sg);
8283
}

0 commit comments

Comments
 (0)