aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'kernel')
-rw-r--r--kernel/futex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/futex.c b/kernel/futex.c
index e2b0fb9a0b3b..05018bfe21a7 100644
--- a/kernel/futex.c
+++ b/kernel/futex.c
@@ -2370,7 +2370,7 @@ static int futex_wait_requeue_pi(u32 __user *uaddr, unsigned int flags,
2370 * fault, unlock the rt_mutex and return the fault to userspace. 2370 * fault, unlock the rt_mutex and return the fault to userspace.
2371 */ 2371 */
2372 if (ret == -EFAULT) { 2372 if (ret == -EFAULT) {
2373 if (rt_mutex_owner(pi_mutex) == current) 2373 if (pi_mutex && rt_mutex_owner(pi_mutex) == current)
2374 rt_mutex_unlock(pi_mutex); 2374 rt_mutex_unlock(pi_mutex);
2375 } else if (ret == -EINTR) { 2375 } else if (ret == -EINTR) {
2376 /* 2376 /*