summaryrefslogtreecommitdiffstats
path: root/remote/modules/vmware/patches/vmmon__4.9__12.0.0-12.5.2.patch
blob: 054dd8a19e8987219ab82b405895c0dafe660fc7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
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(&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((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,