From 1876d2558a670054500f1ca8310cfa21d347c0a9 Mon Sep 17 00:00:00 2001 From: Seungchul Kim Date: Fri, 8 Jun 2018 11:04:16 +0900 Subject: [PATCH] media: vb2: fix missing iovmm_unmap in vb2-dma-sg Change-Id: Id5d9cb3c4c687b5daf5ad339cb67e990056551ab Signed-off-by: Seungchul Kim --- drivers/media/v4l2-core/videobuf2-dma-sg.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/v4l2-core/videobuf2-dma-sg.c b/drivers/media/v4l2-core/videobuf2-dma-sg.c index 3c36d19a1e35..bc5caa58a307 100644 --- a/drivers/media/v4l2-core/videobuf2-dma-sg.c +++ b/drivers/media/v4l2-core/videobuf2-dma-sg.c @@ -302,6 +302,7 @@ static void vb2_dma_sg_put_userptr(void *buf_priv) dprintk(1, "%s: Releasing userspace buffer of %d pages\n", __func__, buf->num_pages); + iovmm_unmap(buf->dev, buf->iova); if (buf->vaddr) vm_unmap_ram(buf->vaddr, buf->num_pages); sg_free_table(buf->dma_sgt); -- 2.20.1