Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cde898fa authored by Thomas Gleixner's avatar Thomas Gleixner Committed by Ingo Molnar
Browse files

futex: correctly return -EFAULT not -EINVAL



return -EFAULT not -EINVAL. Found by review.

Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 54561783
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -658,7 +658,7 @@ static int wake_futex_pi(u32 __user *uaddr, u32 uval, struct futex_q *this)

		if (curval == -EFAULT)
			ret = -EFAULT;
		if (curval != uval)
		else if (curval != uval)
			ret = -EINVAL;
		if (ret) {
			spin_unlock(&pi_state->pi_mutex.wait_lock);