futex: Unlock hb->lock in futex_wait_requeue_pi() error path
[pandora-kernel.git] / kernel / futex.c
index 1bb37d0..f31f190 100644 (file)
@@ -2460,6 +2460,7 @@ static int futex_wait_requeue_pi(u32 __user *uaddr, unsigned int flags,
         * shared futexes. We need to compare the keys:
         */
        if (match_futex(&q.key, &key2)) {
+               queue_unlock(&q, hb);
                ret = -EINVAL;
                goto out_put_keys;
        }