Changeset 21497 in vbox for trunk/src/VBox/Runtime/r0drv/linux
- Timestamp:
- Jul 10, 2009 8:24:18 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 49946
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/linux/memobj-r0drv-linux.c
r21314 r21497 904 904 /* check for unsupported stuff. */ 905 905 AssertMsgReturn(pvFixed == (void *)-1, ("%p\n", pvFixed), VERR_NOT_SUPPORTED); 906 AssertMsgReturn(uAlignment <= PAGE_SIZE, ("%#x\n", uAlignment), VERR_NOT_SUPPORTED); 906 if (uAlignment > PAGE_SIZE) 907 return VERR_NOT_SUPPORTED; 907 908 908 909 /* … … 1018 1019 1019 1020 /* 1021 * Check that the specified alignment is supported. 1022 */ 1023 if (uAlignment > PAGE_SIZE) 1024 return VERR_NOT_SUPPORTED; 1025 1026 /* 1020 1027 * Let rtR0MemObjLinuxDoMmap do the difficult bits. 1021 1028 */ … … 1051 1058 AssertMsgReturn(!offSub && !cbSub, ("%#x %#x\n", offSub, cbSub), VERR_NOT_SUPPORTED); 1052 1059 AssertMsgReturn(pvFixed == (void *)-1, ("%p\n", pvFixed), VERR_NOT_SUPPORTED); 1053 AssertMsgReturn(uAlignment <= PAGE_SIZE, ("%#x\n", uAlignment), VERR_NOT_SUPPORTED); 1060 if (uAlignment > PAGE_SIZE) 1061 return VERR_NOT_SUPPORTED; 1054 1062 1055 1063 /* … … 1135 1143 */ 1136 1144 if (!pTask) 1145 return VERR_NOT_SUPPORTED; 1146 if (uAlignment > PAGE_SIZE) 1137 1147 return VERR_NOT_SUPPORTED; 1138 1148
Note:
See TracChangeset
for help on using the changeset viewer.