aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Zijlstra <a.p.zijlstra@chello.nl>2008-09-30 06:33:07 -0400
committerIngo Molnar <mingo@elte.hu>2008-09-30 06:36:02 -0400
commit42569c39917a08e8de1e8b5685463be7b74baebd (patch)
tree94c451340cd59bf30d226fdc10068f4dd46b27a4
parentc2f9f20154bfb137ccdf8c9159992429a40dfe20 (diff)
futex: fixup get_futex_key() for private futexes
With the get_user_pages_fast() patches we made get_futex_key() obtain a reference on the returned key, but failed to do so for private futexes. Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Acked-by: Nick Piggin <nickpiggin@yahoo.com.au> Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r--kernel/futex.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/futex.c b/kernel/futex.c
index 60b47bb9e3dd..62cbd648e28a 100644
--- a/kernel/futex.c
+++ b/kernel/futex.c
@@ -227,6 +227,7 @@ static int get_futex_key(u32 __user *uaddr, int fshared, union futex_key *key)
227 return -EFAULT; 227 return -EFAULT;
228 key->private.mm = mm; 228 key->private.mm = mm;
229 key->private.address = address; 229 key->private.address = address;
230 get_futex_key_refs(key);
230 return 0; 231 return 0;
231 } 232 }
232 233