diff options
author | Lucas Stach <[email protected]> | 2019-06-04 22:23:31 +0200 |
---|---|---|
committer | Gerd Hoffmann <[email protected]> | 2019-06-05 10:41:17 +0200 |
commit | 283f1e383e91d96fe652fad549537ae15cf31d60 (patch) | |
tree | 8e4d1f68acea5d2dc87c09ec573e3b987d73b03f | |
parent | 89a4aac0ab0e6f5eea10d7bf4869dd15c3de2cd4 (diff) |
udmabuf: actually unmap the scatterlist
unmap_udmabuf fails to actually unmap the scatterlist, leaving dangling
mappings around.
Fixes: fbb0de795078 ("Add udmabuf misc device")
Signed-off-by: Lucas Stach <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
Signed-off-by: Gerd Hoffmann <[email protected]>
-rw-r--r-- | drivers/dma-buf/udmabuf.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/dma-buf/udmabuf.c b/drivers/dma-buf/udmabuf.c index cd57747286f2..9635897458a0 100644 --- a/drivers/dma-buf/udmabuf.c +++ b/drivers/dma-buf/udmabuf.c @@ -77,6 +77,7 @@ static void unmap_udmabuf(struct dma_buf_attachment *at, struct sg_table *sg, enum dma_data_direction direction) { + dma_unmap_sg(at->dev, sg->sgl, sg->nents, direction); sg_free_table(sg); kfree(sg); } |