Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 137598
b: refs/heads/master
c: e8f6386
h: refs/heads/master
v: v3
  • Loading branch information
Darren Hart authored and Ingo Molnar committed Mar 12, 2009
1 parent 576c3cd commit e502a80
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 16f4993f4e9860715918efd4eeac928f8de1218b
refs/heads/master: e8f6386c01a5699c115bdad10271a24076364c97
7 changes: 7 additions & 0 deletions trunk/kernel/futex.c
Original file line number Diff line number Diff line change
Expand Up @@ -1567,6 +1567,13 @@ static int futex_lock_pi(u32 __user *uaddr, int fshared,
}
}

/*
* If fixup_pi_state_owner() faulted and was unable to handle the
* fault, unlock it and return the fault to userspace.
*/
if (ret && (rt_mutex_owner(&q.pi_state->pi_mutex) == current))
rt_mutex_unlock(&q.pi_state->pi_mutex);

/* Unqueue and drop the lock */
unqueue_me_pi(&q);

Expand Down

0 comments on commit e502a80

Please sign in to comment.