VirtualBox

Changeset 99889 in vbox for trunk


Ignore:
Timestamp:
May 22, 2023 10:38:11 AM (20 months ago)
Author:
vboxsync
Message:

Devices/DevVirtioNet: Don't fail if there is no status driver attached, bugref:10397

File:
1 edited

Legend:

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

    r99775 r99889  
    36303630    PPDMIBASE pUpBase;
    36313631    rc = PDMDevHlpDriverAttach(pDevIns, PDM_STATUS_LUN, &pThisCC->IBase, &pUpBase, "Status Port");
    3632     if (RT_FAILURE(rc) && rc != VERR_PDM_NO_ATTACHED_DRIVER)
     3632    if (RT_SUCCESS(rc))
     3633        pThisCC->pLedsConnector = PDMIBASE_QUERY_INTERFACE(pUpBase, PDMILEDCONNECTORS);
     3634    else if (rc != VERR_PDM_NO_ATTACHED_DRIVER)
    36333635        return PDMDEV_SET_ERROR(pDevIns, rc, N_("Failed to attach the status LUN"));
    36343636
    3635     pThisCC->pLedsConnector = PDMIBASE_QUERY_INTERFACE(pUpBase, PDMILEDCONNECTORS);
    36363637    /*
    36373638     * Register saved state.
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