diff mbox

dma-buf/fence: add an lockdep_assert_held()

Message ID 1477339030-32657-1-git-send-email-robdclark@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Rob Clark Oct. 24, 2016, 7:57 p.m. UTC
Signed-off-by: Rob Clark <robdclark@gmail.com>
---
Hmm, looks like I forgot to send this..

 drivers/dma-buf/fence.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Chris Wilson Oct. 24, 2016, 8:11 p.m. UTC | #1
On Mon, Oct 24, 2016 at 03:57:10PM -0400, Rob Clark wrote:
> Signed-off-by: Rob Clark <robdclark@gmail.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
-Chris
Daniel Vetter Oct. 25, 2016, 6:54 a.m. UTC | #2
On Mon, Oct 24, 2016 at 09:11:16PM +0100, Chris Wilson wrote:
> On Mon, Oct 24, 2016 at 03:57:10PM -0400, Rob Clark wrote:
> > Signed-off-by: Rob Clark <robdclark@gmail.com>
> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>

Applied to drm-misc, thanks.
-Daniel
diff mbox

Patch

diff --git a/drivers/dma-buf/fence.c b/drivers/dma-buf/fence.c
index 4d51f9e..cc05ddd 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;