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]>
This commit is contained in:
john stultz 2007-08-22 14:01:10 -07:00 • committed by Linus Torvalds
commit 187226f57f

View file

@ -1670,6 +1670,7 @@ pi_faulted:
attempt);
if (ret)
goto out;
uval = 0;
goto retry_unlocked;
}