VirtualBox

Changeset 101414 in vbox for trunk/src/VBox/Devices/VirtIO


Ignore:
Timestamp:
Oct 11, 2023 8:07:50 AM (16 months ago)
Author:
vboxsync
Message:

Devices/VirtioCore: Correct check, bugref:10521

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/VirtIO/VirtioCore.h

    r100400 r101414  
    999999
    10001000    /* Check that the S/G buffer has memory left. */
    1001     if (RT_LIKELY(pGcSgBuf->idxSeg < pGcSgBuf->cSegs && pGcSgBuf->cbSegLeft))
     1001    if (RT_LIKELY(pGcSgBuf->idxSeg < pGcSgBuf->cSegs || pGcSgBuf->cbSegLeft))
    10021002    { /* likely */ }
    10031003    else
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