VirtualBox

Changeset 104602 in vbox for trunk/src/VBox


Ignore:
Timestamp:
May 13, 2024 3:18:26 PM (11 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
163143
Message:

Devices/Misc/DevFlashCFI.cpp: Return rc on error, bugref:3409

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Misc/DevFlashCFI.cpp

    r100765 r104602  
    600600        {
    601601            if (cbFlash <= pThis->cbFlashSize)
     602            {
    602603                rc = pThis->Lun0.pDrvVfs->pfnReadAll(pThis->Lun0.pDrvVfs, FLASH_CFI_VFS_NAMESPACE, pThis->pszFlashFile,
    603604                                                     pThis->pbFlash, pThis->cbFlashSize);
     605                if (RT_FAILURE(rc))
     606                    return PDMDEV_SET_ERROR(pDevIns, rc, N_("Failed to read flash content from VFS layer\n"));
     607            }
    604608            else
    605609                return PDMDEV_SET_ERROR(pDevIns, VERR_BUFFER_OVERFLOW, N_("Configured flash size is too small to fit the saved NVRAM content"));
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette