Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 605144 | Differences between
and this patch

Collapse All | Expand All

(-)work.old/vmnet-only/userif.c (+4 lines)
Lines 113-124 Link Here
113
   int retval;
113
   int retval;
114
114
115
   down_read(&current->mm->mmap_sem);
115
   down_read(&current->mm->mmap_sem);
116
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 9, 0)
117
   retval = get_user_pages(addr, 1, 0, &page, NULL);
118
#else
116
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 6, 0)
119
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 6, 0)
117
   retval = get_user_pages(addr, 1, 1, 0, &page, NULL);
120
   retval = get_user_pages(addr, 1, 1, 0, &page, NULL);
118
#else
121
#else
119
   retval = get_user_pages(current, current->mm, addr,
122
   retval = get_user_pages(current, current->mm, addr,
120
                           1, 1, 0, &page, NULL);
123
                           1, 1, 0, &page, NULL);
121
#endif
124
#endif
125
#endif
122
   up_read(&current->mm->mmap_sem);
126
   up_read(&current->mm->mmap_sem);
123
127
124
   if (retval != 1) {
128
   if (retval != 1) {

Return to bug 605144