aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/futex.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/futex.c')
-rw-r--r--kernel/futex.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/kernel/futex.c b/kernel/futex.c
index 6a726684217e..facf17d1a705 100644
--- a/kernel/futex.c
+++ b/kernel/futex.c
@@ -232,9 +232,7 @@ static int get_futex_key(u32 __user *uaddr, struct rw_semaphore *fshared,
232 } 232 }
233 233
234again: 234again:
235 down_read(&mm->mmap_sem); 235 err = get_user_pages_fast(address, 1, 0, &page);
236 err = get_user_pages(current, mm, address, 1, 0, 0, &page, NULL);
237 up_read(&mm->mmap_sem);
238 if (err < 0) 236 if (err < 0)
239 return err; 237 return err;
240 238