summaryrefslogtreecommitdiffstats
path: root/kernel/futex.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/futex.c')
-rw-r--r--kernel/futex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/futex.c b/kernel/futex.c
index 11fc3bb456d6..3e2de8fc1891 100644
--- a/kernel/futex.c
+++ b/kernel/futex.c
@@ -1365,9 +1365,9 @@ static void __unqueue_futex(struct futex_q *q)
1365{ 1365{
1366 struct futex_hash_bucket *hb; 1366 struct futex_hash_bucket *hb;
1367 1367
1368 if (WARN_ON_SMP(!q->lock_ptr || !spin_is_locked(q->lock_ptr)) 1368 if (WARN_ON_SMP(!q->lock_ptr) || WARN_ON(plist_node_empty(&q->list)))
1369 || WARN_ON(plist_node_empty(&q->list)))
1370 return; 1369 return;
1370 lockdep_assert_held(q->lock_ptr);
1371 1371
1372 hb = container_of(q->lock_ptr, struct futex_hash_bucket, lock); 1372 hb = container_of(q->lock_ptr, struct futex_hash_bucket, lock);
1373 plist_del(&q->list, &hb->chain); 1373 plist_del(&q->list, &hb->chain);