VirtualBox

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


Ignore:
Timestamp:
Jan 16, 2025 12:33:14 PM (3 weeks ago)
Author:
vboxsync
Message:

Devices/Security/DevTpm.cpp: Fix loading older saved states with an incorrect 0 vendor ID which was fixed in r165971, bugref:10777

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Security/DevTpm.cpp

    r107170 r107812  
    16321632    rc = pHlp->pfnSSMGetU16(pSSM, &u16);
    16331633    AssertRCReturn(rc, rc);
    1634     if (u16 != pThis->uVenId)
     1634    /*
     1635     * r165971 fixes setting the proper vendor ID in the constructor.
     1636     * In older saved states it was always 0 which would made this check fail.
     1637     * So just ignore any mismatches if the loaded vendor ID is 0.
     1638     */
     1639    if (   u16 != pThis->uVenId
     1640        && u16 != 0)
    16351641        return pHlp->pfnSSMSetCfgError(pSSM, RT_SRC_POS,
    16361642                                       N_("Config mismatch - saved uVenId=%#RX16; configured uVenId=%#RX16"),
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