Skip to content

Commit 78010cd

Browse files
robclarkdanvet
authored andcommitted
dma-buf/fence: add an lockdep_assert_held()
Signed-off-by: Rob Clark <[email protected]> Reviewed-by: Chris Wilson <[email protected]> Signed-off-by: Daniel Vetter <[email protected]> Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 714cf7e commit 78010cd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/dma-buf/fence.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ int fence_signal_locked(struct fence *fence)
6868
struct fence_cb *cur, *tmp;
6969
int ret = 0;
7070

71+
lockdep_assert_held(fence->lock);
72+
7173
if (WARN_ON(!fence))
7274
return -EINVAL;
7375

0 commit comments

Comments
 (0)