diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2020-09-03 18:43:06 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2020-09-03 18:43:06 -0700 |
commit | 8381979dfa056dee4df83d1b98740b68776ae8ac (patch) | |
tree | 14cba0617b988a4933122639b9113500c0aac030 /mm/gup.c | |
parent | e28f0104343d0c132fa37f479870c9e43355fee4 (diff) | |
parent | 8891adc61dce2a8a41fc0c23262b681c3ec4b73a (diff) |
Merge branch 'gate-page-refcount' (patches from Dave Hansen)
Merge gate page refcount fix from Dave Hansen:
"During the conversion over to pin_user_pages(), gate pages were missed.
The fix is pretty simple, and is accompanied by a new test from Andy
which probably would have caught this earlier"
* emailed patches from Dave Hansen <dave.hansen@linux.intel.com>:
selftests/x86/test_vsyscall: Improve the process_vm_readv() test
mm: fix pin vs. gup mismatch with gate pages
Diffstat (limited to 'mm/gup.c')
-rw-r--r-- | mm/gup.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -843,7 +843,7 @@ static int get_gate_page(struct mm_struct *mm, unsigned long address, goto unmap; *page = pte_page(*pte); } - if (unlikely(!try_get_page(*page))) { + if (unlikely(!try_grab_page(*page, gup_flags))) { ret = -ENOMEM; goto unmap; } |