summaryrefslogtreecommitdiffstats
path: root/kernel/futex.c
diff options
context:
space:
mode:
authorjohn stultz <johnstul@us.ibm.com>2007-08-22 23:01:10 +0200
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-08-23 04:52:44 +0200
commit187226f57f1381cfc63216979b4375f30e593795 (patch)
tree0bda40993e1794363bf6570614584b03f1de55e9 /kernel/futex.c
parentDocument Linux Memory Policy (diff)
downloadlinux-187226f57f1381cfc63216979b4375f30e593795.tar.xz
linux-187226f57f1381cfc63216979b4375f30e593795.zip
futex_unlock_pi() hurts my brain and may cause application deadlock
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>
Diffstat (limited to '')
-rw-r--r--kernel/futex.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/futex.c b/kernel/futex.c
index 3415e9ad1391..e8935b195e88 100644
--- a/kernel/futex.c
+++ b/kernel/futex.c
@@ -1670,6 +1670,7 @@ pi_faulted:
attempt);
if (ret)
goto out;
+ uval = 0;
goto retry_unlocked;
}