From: john stultz Date: Wed, 22 Aug 2007 21:01:10 +0000 (-0700) Subject: futex_unlock_pi() hurts my brain and may cause application deadlock X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=187226f57f1381cfc63216979b4375f30e593795;p=openwrt%2Fstaging%2Fblogic.git 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 Acked-by: Steven Rostedt Cc: Ingo Molnar Cc: Thomas Gleixner Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- 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; }