dma-buf/fence: add an lockdep_assert_held()
authorRob Clark <robdclark@gmail.com>
Mon, 24 Oct 2016 19:57:10 +0000 (15:57 -0400)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 25 Oct 2016 06:54:09 +0000 (08:54 +0200)
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
drivers/dma-buf/fence.c

index 4d51f9e83fa83ad9a815cb8525756437d81fe650..cc05dddc77a6c23ed106f8dd755af5e7348ef3df 100644 (file)
@@ -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;