From: Rob Clark Date: Mon, 24 Oct 2016 19:57:10 +0000 (-0400) Subject: dma-buf/fence: add an lockdep_assert_held() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=78010cd9736ec571796f4404524ed575b81238b9;p=openwrt%2Fstaging%2Fblogic.git dma-buf/fence: add an lockdep_assert_held() Signed-off-by: Rob Clark Reviewed-by: Chris Wilson Signed-off-by: Daniel Vetter Link: http://patchwork.freedesktop.org/patch/msgid/1477339030-32657-1-git-send-email-robdclark@gmail.com --- diff --git a/drivers/dma-buf/fence.c b/drivers/dma-buf/fence.c index 4d51f9e83fa8..cc05dddc77a6 100644 --- a/drivers/dma-buf/fence.c +++ b/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;