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

Commit 7135bd3d authored by Peter Zijlstra's avatar Peter Zijlstra Committed by android-build-merger
Browse files

futex: Add missing error handling to FUTEX_REQUEUE_PI

am: 1522181f

Change-Id: I74d73e5550ccb3a8d846f636b4f7940b124d261c
parents 11a359f5 1522181f
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -2896,6 +2896,8 @@ static int futex_wait_requeue_pi(u32 __user *uaddr, unsigned int flags,
		if (q.pi_state && (q.pi_state->owner != current)) {
			spin_lock(q.lock_ptr);
			ret = fixup_pi_state_owner(uaddr2, &q, current);
			if (ret && rt_mutex_owner(&q.pi_state->pi_mutex) == current)
				rt_mutex_unlock(&q.pi_state->pi_mutex);
			/*
			 * Drop the reference to the pi state which
			 * the requeue_pi() code acquired for us.