Changeset 82354 in vbox for trunk/src/VBox
- Timestamp:
- Dec 3, 2019 7:15:02 PM (5 years ago)
- Location:
- trunk/src/VBox/Devices/Network
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DevE1000.cpp
r82347 r82354 6015 6015 return PDMDevHlpDBGFStop(pDevIns, RT_SRC_POS, "unsupported op size: offset=%#10x cb=%#10x\n", offReg, cb); 6016 6016 } 6017 if (index > 0)6017 if (index >= 0) 6018 6018 { 6019 6019 RT_UNTRUSTED_VALIDATED_FENCE(); /* paranoia because of port I/O. */ … … 6081 6081 VBOXSTRICTRC rc = VINF_SUCCESS; 6082 6082 int idxReg = e1kRegLookup(offReg); 6083 if (RT_LIKELY(idxReg > 0))6083 if (RT_LIKELY(idxReg >= 0)) 6084 6084 { 6085 6085 RT_UNTRUSTED_VALIDATED_FENCE(); /* paranoia because of port I/O. */ … … 6129 6129 VBOXSTRICTRC rc = VINF_SUCCESS; 6130 6130 int index = e1kRegLookup(offReg); 6131 if (RT_LIKELY(index > 0))6131 if (RT_LIKELY(index >= 0)) 6132 6132 { 6133 6133 RT_UNTRUSTED_VALIDATED_FENCE(); /* paranoia because of port I/O. */ -
trunk/src/VBox/Devices/Network/DevE1000Phy.cpp
r82347 r82354 259 259 uint16_t u16 = 0; 260 260 261 if (index > 0)261 if (index >= 0) 262 262 { 263 263 u16 = s_regMap[index].pfnRead(pPhy, (uint32_t)index, pDevIns); … … 284 284 int index = Phy::lookupRegister(u32Address); 285 285 286 if (index > 0)286 if (index >= 0) 287 287 { 288 288 PhyLog(("PHY#%d At %02d write %04X to %s (%s)\n",
Note:
See TracChangeset
for help on using the changeset viewer.