VirtualBox

Ignore:
Timestamp:
Sep 27, 2013 5:05:06 PM (11 years ago)
Author:
vboxsync
Message:

USBFlt: Attempt to fix host crash on Windows when plugging USB device (#6509)

File:
1 edited

Legend:

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

    r38513 r48742  
    326326    VBOXUSBFLT_LOCK_ACQUIRE();
    327327    pDevice = vboxUsbFltDevGetLocked(pPdo);
    328     if (pDevice->enmState > VBOXUSBFLT_DEVSTATE_ADDED)
     328    if (pDevice == NULL)
     329    {
     330        WARN(("failed to get device for PDO(0x%p)", pPdo));
     331    }
     332    else if (pDevice->enmState > VBOXUSBFLT_DEVSTATE_ADDED)
    329333    {
    330334        vboxUsbFltDevRetain(pDevice);
     
    13641368    VBOXUSBFLT_LOCK_ACQUIRE();
    13651369    pDevice = vboxUsbFltDevGetLocked(pPdo);
    1366     if (pDevice->enmState = VBOXUSBFLT_DEVSTATE_CAPTURING)
     1370    if (pDevice == NULL)
     1371    {
     1372        WARN(("failed to get device for PDO(0x%p)", pPdo));
     1373    }
     1374    else if (pDevice->enmState = VBOXUSBFLT_DEVSTATE_CAPTURING)
    13671375    {
    13681376        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