Skip to content

Commit

Permalink
dma-buf/fence: add an lockdep_assert_held()
Browse files Browse the repository at this point in the history
Signed-off-by: Rob Clark <robdclark@gmail.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1477339030-32657-1-git-send-email-robdclark@gmail.com
  • Loading branch information
Rob Clark authored and Daniel Vetter committed Oct 25, 2016
1 parent 714cf7e commit 78010cd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/dma-buf/fence.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ int fence_signal_locked(struct fence *fence)
struct fence_cb *cur, *tmp;
int ret = 0;

lockdep_assert_held(fence->lock);

if (WARN_ON(!fence))
return -EINVAL;

Expand Down

0 comments on commit 78010cd

Please sign in to comment.