VirtualBox

Changeset 99886 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
May 22, 2023 10:32:57 AM (19 months ago)
Author:
vboxsync
Message:

Devices/DevE1000: Don't crash if there is no status driver attached, bugref:10383

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/DevE1000.cpp

    r98523 r99886  
    82618261    PPDMIBASE pBase;
    82628262    rc = PDMDevHlpDriverAttach(pDevIns, PDM_STATUS_LUN, &pThisCC->IBase, &pBase, "Status Port");
    8263     if (RT_FAILURE(rc))
     8263    if (RT_SUCCESS(rc))
     8264        pThisCC->pLedsConnector = PDMIBASE_QUERY_INTERFACE(pBase, PDMILEDCONNECTORS);
     8265    else if (rc == VERR_PDM_NO_ATTACHED_DRIVER)
     8266        rc = VINF_SUCCESS;
     8267    else
    82648268        return PDMDEV_SET_ERROR(pDevIns, rc, N_("Failed to attach the status LUN"));
    8265     pThisCC->pLedsConnector = PDMIBASE_QUERY_INTERFACE(pBase, PDMILEDCONNECTORS);
    82668269
    82678270    /* Network driver */
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