projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
42b88e6
)
futex_unlock_pi() hurts my brain and may cause application deadlock
author
john stultz
<johnstul@us.ibm.com>
Wed, 22 Aug 2007 21:01:10 +0000
(14:01 -0700)
committer
Linus Torvalds
<torvalds@woody.linux-foundation.org>
Thu, 23 Aug 2007 02:52:44 +0000
(19:52 -0700)
Avoid futex_unlock_pi returning -EFAULT (which results in deadlock), by
clearing uval before jumping to retry_locked.
Signed-off-by: John Stultz <johnstul@us.ibm.com>
Acked-by: Steven Rostedt <rostedt@goodmis.org>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/futex.c
patch
|
blob
|
blame
|
history
diff --git
a/kernel/futex.c
b/kernel/futex.c
index 3415e9ad1391adc6422c9324b8efdc1bbd6c7ce2..e8935b195e8809fa1a23484d5007feb27887fd63 100644
(file)
--- a/
kernel/futex.c
+++ b/
kernel/futex.c
@@
-1670,6
+1670,7
@@
pi_faulted:
attempt);
if (ret)
goto out;
+ uval = 0;
goto retry_unlocked;
}