diff options
author | Rob Clark <robdclark@gmail.com> | 2016-10-24 15:57:10 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2016-10-25 08:54:09 +0200 |
commit | 78010cd9736ec571796f4404524ed575b81238b9 (patch) | |
tree | 56416e081cf57ddeaa1e43820dc0fa4ec9714ce8 | |
parent | 714cf7ea505502186de0e87e9f029a4c46f03631 (diff) |
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
-rw-r--r-- | drivers/dma-buf/fence.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; |