Skip to contentSkip to conversation

dma-buf/fence: add an lockdep_assert_held()

PATCH Applied Rob Clark 3 participants 3 messages Oct 24, 2016 – Oct 25, 2016 DMA buffer sharing framework

lore
Share & tools
lore

Rob Clark

author
#0 lore raw

PATCH 1/1 dma-buf/fence: add an lockdep_assert_held()

---
Hmm, looks like I forgot to send this..

 drivers/dma-buf/fence.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/dma-buf/fence.c +2 -0
index 4d51f9e..cc05ddd 100644
@@ -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;
 
Signature · 6 lines
2.7.4

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel