Changeset 106311 in vbox
- Timestamp:
- Oct 14, 2024 4:17:54 PM (6 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/linux/memobj-r0drv-linux.c
r106261 r106311 1377 1377 const int cPages = cb >> PAGE_SHIFT; 1378 1378 struct task_struct *pTask = rtR0ProcessToLinuxTask(R0Process); 1379 # if GET_USER_PAGES_API < KERNEL_VERSION(6, 5, 0) 1379 # if GET_USER_PAGES_API < KERNEL_VERSION(6, 5, 0) && !RTLNX_RHEL_RANGE(9,6, 9,99) 1380 1380 struct vm_area_struct **papVMAs; 1381 1381 # endif … … 1403 1403 } 1404 1404 1405 # if GET_USER_PAGES_API < KERNEL_VERSION(6, 5, 0) 1405 # if GET_USER_PAGES_API < KERNEL_VERSION(6, 5, 0) && !RTLNX_RHEL_RANGE(9,6, 9,99) 1406 1406 papVMAs = (struct vm_area_struct **)RTMemAlloc(sizeof(*papVMAs) * cPages); 1407 1407 if (papVMAs) … … 1427 1427 # endif 1428 1428 &pMemLnx->apPages[0] /* Page array. */ 1429 # if GET_USER_PAGES_API < KERNEL_VERSION(6, 5, 0) && !RTLNX_SUSE_MAJ_PREREQ(15, 6) 1429 # if GET_USER_PAGES_API < KERNEL_VERSION(6, 5, 0) && !RTLNX_SUSE_MAJ_PREREQ(15, 6) && !RTLNX_RHEL_RANGE(9,6, 9,99) 1430 1430 , papVMAs /* vmas */ 1431 1431 # endif … … 1452 1452 # endif 1453 1453 &pMemLnx->apPages[0] /* Page array. */ 1454 # if GET_USER_PAGES_API < KERNEL_VERSION(6, 5, 0) 1454 # if GET_USER_PAGES_API < KERNEL_VERSION(6, 5, 0) && !RTLNX_RHEL_RANGE(9,6, 9,99) 1455 1455 , papVMAs /* vmas */ 1456 1456 # endif … … 1509 1509 LNX_MM_UP_READ(pTask->mm); 1510 1510 1511 # if GET_USER_PAGES_API < KERNEL_VERSION(6, 5, 0) 1511 # if GET_USER_PAGES_API < KERNEL_VERSION(6, 5, 0) && !RTLNX_RHEL_RANGE(9,6, 9,99) 1512 1512 RTMemFree(papVMAs); 1513 1513 # endif … … 1540 1540 rc = VERR_LOCK_FAILED; 1541 1541 1542 # if GET_USER_PAGES_API < KERNEL_VERSION(6, 5, 0) 1542 # if GET_USER_PAGES_API < KERNEL_VERSION(6, 5, 0) && !RTLNX_RHEL_RANGE(9,6, 9,99) 1543 1543 RTMemFree(papVMAs); 1544 1544 }
Note:
See TracChangeset
for help on using the changeset viewer.