diff options
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/futex.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/futex.c b/kernel/futex.c index 2331b73f6932..6b50a024bca2 100644 --- a/kernel/futex.c +++ b/kernel/futex.c | |||
@@ -659,7 +659,8 @@ static inline void | |||
659 | double_unlock_hb(struct futex_hash_bucket *hb1, struct futex_hash_bucket *hb2) | 659 | double_unlock_hb(struct futex_hash_bucket *hb1, struct futex_hash_bucket *hb2) |
660 | { | 660 | { |
661 | spin_unlock(&hb1->lock); | 661 | spin_unlock(&hb1->lock); |
662 | spin_unlock(&hb2->lock); | 662 | if (hb1 != hb2) |
663 | spin_unlock(&hb2->lock); | ||
663 | } | 664 | } |
664 | 665 | ||
665 | /* | 666 | /* |