futex: fixup get_futex_key() for private futexes
[sfrench/cifs-2.6.git] / kernel / futex.c
index 60b47bb9e3dd39a9d20f62aea45aa3508ac99d18..62cbd648e28a663fc5e165adf177d227bed38a33 100644 (file)
@@ -227,6 +227,7 @@ static int get_futex_key(u32 __user *uaddr, int fshared, union futex_key *key)
                        return -EFAULT;
                key->private.mm = mm;
                key->private.address = address;
+               get_futex_key_refs(key);
                return 0;
        }