forked from pool/virtualbox
14 lines
1016 B
Diff
14 lines
1016 B
Diff
|
Index: b/src/VBox/Additions/linux/sharedfolders/regops.c
|
||
|
===================================================================
|
||
|
--- a/src/VBox/Additions/linux/sharedfolders/regops.c
|
||
|
+++ b/src/VBox/Additions/linux/sharedfolders/regops.c
|
||
|
@@ -1436,7 +1436,7 @@ DECLINLINE(int) vbsf_lock_user_pages(uin
|
||
|
# elif LINUX_VERSION_CODE >= KERNEL_VERSION(4, 6, 0)
|
||
|
ssize_t cPagesLocked = get_user_pages_unlocked(uPtrFrom, cPages, fWrite, 1 /*force*/, papPages);
|
||
|
# elif LINUX_VERSION_CODE >= KERNEL_VERSION(4, 4, 168) && LINUX_VERSION_CODE < KERNEL_VERSION(4, 5, 0)
|
||
|
- ssize_t cPagesLocked = get_user_pages_unlocked(current, current->mm, uPtrFrom, cPages, papPages,
|
||
|
+ ssize_t cPagesLocked = get_user_pages_unlocked(uPtrFrom, cPages, papPages,
|
||
|
fWrite ? FOLL_WRITE | FOLL_FORCE : FOLL_FORCE);
|
||
|
# elif LINUX_VERSION_CODE >= KERNEL_VERSION(4, 0, 0)
|
||
|
ssize_t cPagesLocked = get_user_pages_unlocked(current, current->mm, uPtrFrom, cPages, fWrite, 1 /*force*/, papPages);
|