mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 12:17:12 +09:00
futex: Add missing error handling to FUTEX_REQUEUE_PI
am: 99d403faba
Change-Id: I7d99bd76a3d1cd329295b157eb179fc194029c5d
This commit is contained in:
@@ -2773,6 +2773,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.
|
||||
|
||||
Reference in New Issue
Block a user