Changeset 80712 in vbox for trunk/src/VBox/Runtime/r0drv/linux
- Timestamp:
- Sep 10, 2019 7:25:36 PM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 133253
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/linux/memuserkernel-r0drv-linux.c
r76859 r80712 35 35 #include <iprt/errcore.h> 36 36 37 #ifdef RHEL_RELEASE_CODE 38 # if RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(8, 1) 39 # define RHEL_81 40 # endif 41 #endif 37 42 38 43 RTR0DECL(int) RTR0MemUserCopyFrom(void *pvDst, RTR3PTR R3PtrSrc, size_t cb) … … 67 72 { 68 73 IPRT_LINUX_SAVE_EFL_AC(); 69 #if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 0, 0) 74 #if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 0, 0) || defined(RHEL_81) 70 75 bool fRc = access_ok((void *)R3Ptr, 1); 71 76 #else … … 87 92 #else 88 93 # error "PORT ME" 89 #if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 0, 0) 94 #if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 0, 0) || defined(RHEL_81) 90 95 return !access_ok(pv, 1); 91 96 #else
Note:
See TracChangeset
for help on using the changeset viewer.