Changeset 76859 in vbox for trunk/src/VBox/Runtime/r0drv/linux/memuserkernel-r0drv-linux.c
- Timestamp:
- Jan 17, 2019 1:53:59 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/linux/memuserkernel-r0drv-linux.c
r76553 r76859 67 67 { 68 68 IPRT_LINUX_SAVE_EFL_AC(); 69 #if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 0, 0) 70 bool fRc = access_ok((void *)R3Ptr, 1); 71 #else 69 72 bool fRc = access_ok(VERIFY_READ, (void *)R3Ptr, 1); 73 #endif 70 74 IPRT_LINUX_RESTORE_EFL_AC(); 71 75 return fRc; … … 83 87 #else 84 88 # error "PORT ME" 89 #if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 0, 0) 90 return !access_ok(pv, 1); 91 #else 85 92 return !access_ok(VERIFY_READ, pv, 1); 93 #endif /* LINUX_VERSION_CODE */ 86 94 #endif 87 95 }
Note:
See TracChangeset
for help on using the changeset viewer.