VirtualBox

Ignore:
Timestamp:
Oct 4, 2013 5:07:40 AM (11 years ago)
Author:
vboxsync
Message:

USBFlt: Another attempt to fix host crash on Windows related to USB (#6509)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/VBoxUSB/win/mon/VBoxUsbFlt.cpp

    r48742 r48874  
    326326    VBOXUSBFLT_LOCK_ACQUIRE();
    327327    pDevice = vboxUsbFltDevGetLocked(pPdo);
     328    /*
     329     * Prevent a host crash when vboxUsbFltDevGetLocked fails to locate the matching PDO
     330     * in g_VBoxUsbFltGlobals.DeviceList (see @bugref{6509}).
     331     */
    328332    if (pDevice == NULL)
    329333    {
     
    13681372    VBOXUSBFLT_LOCK_ACQUIRE();
    13691373    pDevice = vboxUsbFltDevGetLocked(pPdo);
     1374    /*
     1375     * Prevent a host crash when vboxUsbFltDevGetLocked fails to locate the matching PDO
     1376     * in g_VBoxUsbFltGlobals.DeviceList (see @bugref{6509}).
     1377     */
    13701378    if (pDevice == NULL)
    13711379    {
     
    13911399{
    13921400    PVBOXUSBFLT_DEVICE pDevice = (PVBOXUSBFLT_DEVICE)hDev;
     1401    /*
     1402     * Prevent a host crash when VBoxUsbFltProxyStarted fails, returning NULL.
     1403     * See @bugref{6509}.
     1404     */
     1405    if (pDevice == NULL)
     1406    {
     1407        WARN(("VBoxUsbFltProxyStopped called with NULL device pointer"));
     1408        return;
     1409    }
    13931410    VBOXUSBFLT_LOCK_ACQUIRE();
    13941411    if (pDevice->enmState == VBOXUSBFLT_DEVSTATE_CAPTURED
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