VirtualBox

Ignore:
Timestamp:
Mar 24, 2010 12:33:33 PM (15 years ago)
Author:
vboxsync
Message:

SCSI: Cleanup during destruction

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/VSCSI/VSCSIDevice.cpp

    r27659 r27665  
    240240    AssertPtrReturn(pVScsiDevice->papVScsiLun[iLun], VERR_VSCSI_LUN_NOT_ATTACHED);
    241241
    242     *phVScsiLun = pVScsiDevice->papVScsiLun[iLun];
     242    PVSCSILUNINT pVScsiLun = pVScsiDevice->papVScsiLun[iLun];
     243
     244    pVScsiLun->pVScsiDevice = NULL;
     245    *phVScsiLun = pVScsiLun;
    243246    pVScsiDevice->papVScsiLun[iLun] = NULL;
    244247    pVScsiDevice->cLunsAttached--;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette