diff options
Diffstat (limited to 'kernel/futex.c')
-rw-r--r-- | kernel/futex.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/futex.c b/kernel/futex.c index cdf365036141..b687cb22301c 100644 --- a/kernel/futex.c +++ b/kernel/futex.c | |||
@@ -338,7 +338,7 @@ static inline bool should_fail_futex(bool fshared) | |||
338 | 338 | ||
339 | static inline void futex_get_mm(union futex_key *key) | 339 | static inline void futex_get_mm(union futex_key *key) |
340 | { | 340 | { |
341 | atomic_inc(&key->private.mm->mm_count); | 341 | mmgrab(key->private.mm); |
342 | /* | 342 | /* |
343 | * Ensure futex_get_mm() implies a full barrier such that | 343 | * Ensure futex_get_mm() implies a full barrier such that |
344 | * get_futex_key() implies a full barrier. This is relied upon | 344 | * get_futex_key() implies a full barrier. This is relied upon |