Skip to content

Commit 791da5c

Browse files
committed
misc: fastrpc: Prepare to dynamic dma-buf locking specification
Prepare fastrpc to the common dynamic dma-buf locking convention by starting to use the unlocked versions of dma-buf API functions. Acked-by: Christian König <[email protected]> Acked-by: Srinivas Kandagatla <[email protected]> Signed-off-by: Dmitry Osipenko <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 21c9c5c commit 791da5c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/misc/fastrpc.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -310,8 +310,8 @@ static void fastrpc_free_map(struct kref *ref)
310310
return;
311311
}
312312
}
313-
dma_buf_unmap_attachment(map->attach, map->table,
314-
DMA_BIDIRECTIONAL);
313+
dma_buf_unmap_attachment_unlocked(map->attach, map->table,
314+
DMA_BIDIRECTIONAL);
315315
dma_buf_detach(map->buf, map->attach);
316316
dma_buf_put(map->buf);
317317
}
@@ -726,7 +726,7 @@ static int fastrpc_map_create(struct fastrpc_user *fl, int fd,
726726
goto attach_err;
727727
}
728728

729-
map->table = dma_buf_map_attachment(map->attach, DMA_BIDIRECTIONAL);
729+
map->table = dma_buf_map_attachment_unlocked(map->attach, DMA_BIDIRECTIONAL);
730730
if (IS_ERR(map->table)) {
731731
err = PTR_ERR(map->table);
732732
goto map_err;

0 commit comments

Comments
 (0)