Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 32251
b: refs/heads/master
c: 06a9ec2
h: refs/heads/master
i:
  32249: 1406664
  32247: 86dd2b0
v: v3
  • Loading branch information
Thomas Gleixner authored and Linus Torvalds committed Jul 10, 2006
1 parent e8e509d commit 92e37d1
Show file tree
Hide file tree
Showing 2 changed files with 7 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: bed936f7eab946c60170bc92a1aea597da158e02
refs/heads/master: 06a9ec291b3aec9c7e36af0a10ad2b556bd7e84f
6 changes: 6 additions & 0 deletions trunk/kernel/futex.c
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,12 @@ lookup_pi_state(u32 uval, struct futex_hash_bucket *hb, struct futex_q *me)
* the refcount and return its pi_state:
*/
pi_state = this->pi_state;
/*
* Userspace might have messed up non PI and PI futexes
*/
if (unlikely(!pi_state))
return -EINVAL;

atomic_inc(&pi_state->refcount);
me->pi_state = pi_state;

Expand Down

0 comments on commit 92e37d1

Please sign in to comment.