|
@@ -150,7 +150,8 @@ static struct futex_hash_bucket *hash_futex(union futex_key *key)
|
|
*/
|
|
*/
|
|
static inline int match_futex(union futex_key *key1, union futex_key *key2)
|
|
static inline int match_futex(union futex_key *key1, union futex_key *key2)
|
|
{
|
|
{
|
|
- return (key1->both.word == key2->both.word
|
|
|
|
|
|
+ return (key1 && key2
|
|
|
|
+ && key1->both.word == key2->both.word
|
|
&& key1->both.ptr == key2->both.ptr
|
|
&& key1->both.ptr == key2->both.ptr
|
|
&& key1->both.offset == key2->both.offset);
|
|
&& key1->both.offset == key2->both.offset);
|
|
}
|
|
}
|