From: Dave Airlie <airl...@redhat.com> This just avoids looking into the internals of the iosys_map.
Signed-off-by: Dave Airlie <airl...@redhat.com> --- drivers/dma-buf/udmabuf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma-buf/udmabuf.c b/drivers/dma-buf/udmabuf.c index 7eee3eb47a8e..101cc7853043 100644 --- a/drivers/dma-buf/udmabuf.c +++ b/drivers/dma-buf/udmabuf.c @@ -145,7 +145,7 @@ static void vunmap_udmabuf(struct dma_buf *buf, struct iosys_map *map) dma_resv_assert_held(buf->resv); - vm_unmap_ram(map->vaddr, ubuf->pagecount); + vm_unmap_ram(iosys_map_ptr(map), ubuf->pagecount); } static struct sg_table *get_sg_table(struct device *dev, struct dma_buf *buf, -- 2.49.0