Commit:     187226f57f1381cfc63216979b4375f30e593795
Parent:     42b88e6ad4014d290d6b59dfeb5d6949c5a3f346
Author:     john stultz <[EMAIL PROTECTED]>
AuthorDate: Wed Aug 22 14:01:10 2007 -0700
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Wed Aug 22 19:52:44 2007 -0700

    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 <[EMAIL PROTECTED]>
    Acked-by: Steven Rostedt <[EMAIL PROTECTED]>
    Cc: Ingo Molnar <[EMAIL PROTECTED]>
    Cc: Thomas Gleixner <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
 kernel/futex.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/kernel/futex.c b/kernel/futex.c
index 3415e9a..e8935b1 100644
--- a/kernel/futex.c
+++ b/kernel/futex.c
@@ -1670,6 +1670,7 @@ pi_faulted:
                if (ret)
                        goto out;
+               uval = 0;
                goto retry_unlocked;
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to