- Timestamp:
- Apr 4, 2020 11:35:03 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/VMMDev/VMMDevHGCM.cpp
r83551 r83558 351 351 VBOXHGCMGUESTPARM * const pGuestParm = &pCmd->u.call.paGuestParms[i]; 352 352 353 if (pHostParm->type == VBOX_HGCM_SVC_PARM_PTR)354 RTMemFreeZ(pHostParm->u.pointer.addr, pHostParm->u.pointer.size);355 356 353 if ( pGuestParm->enmType == VMMDevHGCMParmType_LinAddr_In 357 354 || pGuestParm->enmType == VMMDevHGCMParmType_LinAddr_Out … … 360 357 || pGuestParm->enmType == VMMDevHGCMParmType_ContiguousPageList) 361 358 { 359 Assert(pHostParm->type == VBOX_HGCM_SVC_PARM_PTR); 362 360 if (pGuestParm->u.ptr.paPages != &pGuestParm->u.ptr.GCPhysSinglePage) 363 361 RTMemFree(pGuestParm->u.ptr.paPages); 362 RTMemFreeZ(pHostParm->u.pointer.addr, pGuestParm->u.ptr.cbData); 363 } 364 else if (pGuestParm->enmType == VMMDevHGCMParmType_Embedded) 365 { 366 Assert(pHostParm->type == VBOX_HGCM_SVC_PARM_PTR); 367 RTMemFreeZ(pHostParm->u.pointer.addr, pGuestParm->u.ptr.cbData); 364 368 } 365 369 else if (pGuestParm->enmType == VMMDevHGCMParmType_NoBouncePageList) 366 370 { 371 Assert(pHostParm->type == VBOX_HGCM_SVC_PARM_PAGES); 367 372 if (pGuestParm->u.Pages.paPgLocks) 368 373 { … … 374 379 } 375 380 } 381 else 382 Assert(pHostParm->type != VBOX_HGCM_SVC_PARM_PTR && pHostParm->type != VBOX_HGCM_SVC_PARM_PAGES); 376 383 } 377 384 } … … 707 714 708 715 case VMMDevHGCMParmType_PageList: 709 RT_FALL_THRU();710 716 case VMMDevHGCMParmType_LinAddr_In: 711 717 case VMMDevHGCMParmType_LinAddr_Out:
Note:
See TracChangeset
for help on using the changeset viewer.