Message ID | 20210307072629.5955-1-tst@schoebel-theuer.de |
---|---|
State | New |
Headers | show |
Series | [RESEND,v2,4.4] futex: fix irq self-deadlock and satisfy assertion | expand |
diff --git a/kernel/futex.c b/kernel/futex.c index 4a707bc7cceb..0c42d2313660 100644 --- a/kernel/futex.c +++ b/kernel/futex.c @@ -874,7 +874,9 @@ static void free_pi_state(struct futex_pi_state *pi_state) * and has cleaned up the pi_state already */ if (pi_state->owner) { + raw_spin_lock_irq(&pi_state->pi_mutex.wait_lock); pi_state_update_owner(pi_state, NULL); + raw_spin_unlock_irq(&pi_state->pi_mutex.wait_lock); rt_mutex_proxy_unlock(&pi_state->pi_mutex); }