VirtualBox

Changeset 99543 in vbox


Ignore:
Timestamp:
Apr 27, 2023 8:15:49 AM (19 months ago)
Author:
vboxsync
Message:

Devices/DevQemuFwCfg: Error out early when the item could not be found, bugref:10431

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/PC/DevQemuFwCfg.cpp

    r99532 r99543  
    859859    if (DmaDesc.u32Ctrl & QEMU_FW_CFG_DMA_SELECT)
    860860        rc = qemuFwCfgItemSelect(pThis, QEMU_FW_CFG_DMA_GET_CFG_ITEM(DmaDesc.u32Ctrl));
     861    else if (!pThis->pCfgItem)
     862        rc = VERR_NOT_FOUND;
    861863
    862864    if (RT_SUCCESS(rc))
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