projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c2f9f20
)
futex: fixup get_futex_key() for private futexes
author
Peter Zijlstra
<a.p.zijlstra@chello.nl>
Tue, 30 Sep 2008 10:33:07 +0000
(12:33 +0200)
committer
Ingo Molnar
<mingo@elte.hu>
Tue, 30 Sep 2008 10:36:02 +0000
(12:36 +0200)
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>
kernel/futex.c
patch
|
blob
|
blame
|
history
diff --git
a/kernel/futex.c
b/kernel/futex.c
index 60b47bb9e3dd39a9d20f62aea45aa3508ac99d18..62cbd648e28a663fc5e165adf177d227bed38a33 100644
(file)
--- 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)
return -EFAULT;
key->private.mm = mm;
key->private.address = address;
+ get_futex_key_refs(key);
return 0;
}