summaryrefslogtreecommitdiffstats
path: root/remote/modules/vmware/patches/vmnet__4.9__12.0.0-12.5.2.patch
diff options
context:
space:
mode:
Diffstat (limited to 'remote/modules/vmware/patches/vmnet__4.9__12.0.0-12.5.2.patch')
-rw-r--r--remote/modules/vmware/patches/vmnet__4.9__12.0.0-12.5.2.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/remote/modules/vmware/patches/vmnet__4.9__12.0.0-12.5.2.patch b/remote/modules/vmware/patches/vmnet__4.9__12.0.0-12.5.2.patch
new file mode 100644
index 00000000..18ef062b
--- /dev/null
+++ b/remote/modules/vmware/patches/vmnet__4.9__12.0.0-12.5.2.patch
@@ -0,0 +1,13 @@
+--- a/userif.c 2016-12-22 14:29:43.237218623 +0100
++++ b/userif.c 2016-12-22 14:31:03.258834075 +0100
+@@ -113,7 +113,9 @@
+ int retval;
+
+ down_read(&current->mm->mmap_sem);
+-#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 6, 0)
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 9, 0)
++ retval = get_user_pages(addr, 1, 0, &page, NULL);
++#elif LINUX_VERSION_CODE >= KERNEL_VERSION(4, 6, 0)
+ retval = get_user_pages(addr, 1, 1, 0, &page, NULL);
+ #else
+ retval = get_user_pages(current, current->mm, addr,