diff options
-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 80ba086f021d..02febad00794 100644 --- a/kernel/futex.c +++ b/kernel/futex.c | |||
@@ -288,7 +288,7 @@ again: | |||
288 | put_page(page); | 288 | put_page(page); |
289 | /* serialize against __split_huge_page_splitting() */ | 289 | /* serialize against __split_huge_page_splitting() */ |
290 | local_irq_disable(); | 290 | local_irq_disable(); |
291 | if (likely(__get_user_pages_fast(address, 1, 1, &page) == 1)) { | 291 | if (likely(__get_user_pages_fast(address, 1, !ro, &page) == 1)) { |
292 | page_head = compound_head(page); | 292 | page_head = compound_head(page); |
293 | /* | 293 | /* |
294 | * page_head is valid pointer but we must pin | 294 | * page_head is valid pointer but we must pin |