futex_unlock_pi() hurts my brain and may cause application deadlock
authorjohn stultz <[email protected]>
Wed, 22 Aug 2007 21:01:10 +0000 (14:01 -0700)
committerLinus Torvalds <[email protected]>
Thu, 23 Aug 2007 02:52:44 +0000 (19:52 -0700)
commit187226f57f1381cfc63216979b4375f30e593795
tree0bda40993e1794363bf6570614584b03f1de55e9
parent42b88e6ad4014d290d6b59dfeb5d6949c5a3f346
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