perf: fix perf bug in fork()
[platform/adaptation/renesas_rcar/renesas_kernel.git] / kernel / futex.c
index e3087af..0b0dc02 100644 (file)
@@ -2614,6 +2614,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(hb);
                ret = -EINVAL;
                goto out_put_keys;
        }