diff options
Diffstat (limited to 'remote/modules/vmware/patches/vmmon__4.9__12.0.0-12.5.2.patch')
-rw-r--r-- | remote/modules/vmware/patches/vmmon__4.9__12.0.0-12.5.2.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/remote/modules/vmware/patches/vmmon__4.9__12.0.0-12.5.2.patch b/remote/modules/vmware/patches/vmmon__4.9__12.0.0-12.5.2.patch new file mode 100644 index 00000000..054dd8a1 --- /dev/null +++ b/remote/modules/vmware/patches/vmmon__4.9__12.0.0-12.5.2.patch @@ -0,0 +1,13 @@ +--- a/linux/hostif.c 2016-12-22 14:27:00.425933040 +0100 ++++ b/linux/hostif.c 2016-12-22 14:27:38.746706220 +0100 +@@ -1162,7 +1162,9 @@ + int retval; + + down_read(¤t->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((unsigned long)uvAddr, numPages, 0, ppages, NULL); ++#elif LINUX_VERSION_CODE >= KERNEL_VERSION(4, 6, 0) + retval = get_user_pages((unsigned long)uvAddr, numPages, 0, 0, ppages, NULL); + #else + retval = get_user_pages(current, current->mm, (unsigned long)uvAddr, |