We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50f0ddc commit 34c7797Copy full SHA for 34c7797
drivers/dma-buf/dma-buf.c
@@ -1450,6 +1450,8 @@ int dma_buf_vmap(struct dma_buf *dmabuf, struct iosys_map *map)
1450
if (WARN_ON(!dmabuf))
1451
return -EINVAL;
1452
1453
+ dma_resv_assert_held(dmabuf->resv);
1454
+
1455
if (!dmabuf->ops->vmap)
1456
1457
@@ -1515,6 +1517,8 @@ void dma_buf_vunmap(struct dma_buf *dmabuf, struct iosys_map *map)
1515
1517
1516
1518
return;
1519
1520
1521
1522
BUG_ON(iosys_map_is_null(&dmabuf->vmap_ptr));
1523
BUG_ON(dmabuf->vmapping_counter == 0);
1524
BUG_ON(!iosys_map_is_equal(&dmabuf->vmap_ptr, map));
0 commit comments