VirtualBox

Changeset 82354 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Dec 3, 2019 7:15:02 PM (5 years ago)
Author:
vboxsync
Message:

Dev/E1000: Fixed regression introduced by r135174

Location:
trunk/src/VBox/Devices/Network
Files:
2 edited

Legend:

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

    r82347 r82354  
    60156015            return PDMDevHlpDBGFStop(pDevIns, RT_SRC_POS, "unsupported op size: offset=%#10x cb=%#10x\n", offReg, cb);
    60166016    }
    6017     if (index > 0)
     6017    if (index >= 0)
    60186018    {
    60196019        RT_UNTRUSTED_VALIDATED_FENCE(); /* paranoia because of port I/O. */
     
    60816081    VBOXSTRICTRC rc     = VINF_SUCCESS;
    60826082    int          idxReg = e1kRegLookup(offReg);
    6083     if (RT_LIKELY(idxReg > 0))
     6083    if (RT_LIKELY(idxReg >= 0))
    60846084    {
    60856085        RT_UNTRUSTED_VALIDATED_FENCE(); /* paranoia because of port I/O. */
     
    61296129    VBOXSTRICTRC rc    = VINF_SUCCESS;
    61306130    int          index = e1kRegLookup(offReg);
    6131     if (RT_LIKELY(index > 0))
     6131    if (RT_LIKELY(index >= 0))
    61326132    {
    61336133        RT_UNTRUSTED_VALIDATED_FENCE(); /* paranoia because of port I/O. */
  • trunk/src/VBox/Devices/Network/DevE1000Phy.cpp

    r82347 r82354  
    259259    uint16_t u16   = 0;
    260260
    261     if (index > 0)
     261    if (index >= 0)
    262262    {
    263263        u16 = s_regMap[index].pfnRead(pPhy, (uint32_t)index, pDevIns);
     
    284284    int index = Phy::lookupRegister(u32Address);
    285285
    286     if (index > 0)
     286    if (index >= 0)
    287287    {
    288288        PhyLog(("PHY#%d At %02d write      %04X  to  %s (%s)\n",
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