File fixes_for_Leap42.3.patch of Package virtualbox.openSUSE_Leap_15.3_Update

Index: VirtualBox-6.1.13/src/VBox/Additions/linux/sharedfolders/regops.c
===================================================================
--- VirtualBox-6.1.13.orig/src/VBox/Additions/linux/sharedfolders/regops.c
+++ VirtualBox-6.1.13/src/VBox/Additions/linux/sharedfolders/regops.c
@@ -1432,7 +1432,7 @@ DECLINLINE(int) vbsf_lock_user_pages(uin
 # elif RTLNX_VER_MIN(4,6,0)
     ssize_t cPagesLocked = get_user_pages_unlocked(uPtrFrom, cPages, fWrite, 1 /*force*/, papPages);
 # elif RTLNX_VER_RANGE(4,4,168,  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 RTLNX_VER_MIN(4,0,0)
     ssize_t cPagesLocked = get_user_pages_unlocked(current, current->mm, uPtrFrom, cPages, fWrite, 1 /*force*/, papPages);
openSUSE Build Service is sponsored by