|
@@ -2370,7 +2370,7 @@ static int futex_wait_requeue_pi(u32 __user *uaddr, unsigned int flags,
|
|
* fault, unlock the rt_mutex and return the fault to userspace.
|
|
* fault, unlock the rt_mutex and return the fault to userspace.
|
|
*/
|
|
*/
|
|
if (ret == -EFAULT) {
|
|
if (ret == -EFAULT) {
|
|
- if (rt_mutex_owner(pi_mutex) == current)
|
|
|
|
|
|
+ if (pi_mutex && rt_mutex_owner(pi_mutex) == current)
|
|
rt_mutex_unlock(pi_mutex);
|
|
rt_mutex_unlock(pi_mutex);
|
|
} else if (ret == -EINTR) {
|
|
} else if (ret == -EINTR) {
|
|
/*
|
|
/*
|