[PATCH 2/9] udmabuf: use new iosys_map accessors.

Dave Airlie airlied at gmail.com
Thu May 22 06:52:11 UTC 2025


From: Dave Airlie <airlied at redhat.com>

This just avoids looking into the internals of the iosys_map.

Signed-off-by: Dave Airlie <airlied at 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



More information about the dri-devel mailing list