Browse Source

dma-buf/fence: add an lockdep_assert_held()

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
Rob Clark 8 years ago
parent
commit
78010cd973
1 changed files with 2 additions and 0 deletions
  1. 2 0
      drivers/dma-buf/fence.c

+ 2 - 0
drivers/dma-buf/fence.c

@@ -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;