VirtualBox

Changeset 64809 in vbox


Ignore:
Timestamp:
Dec 8, 2016 1:54:26 PM (8 years ago)
Author:
vboxsync
Message:

Devices/Virtio: vqueuePut - when computing remaining transfer size,
use constant uReserved, not variable cbReserved that is reset after
the first loop iteration. Makes assertion at the end of function
happy.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/VirtIO/Virtio.cpp

    r64393 r64809  
    227227    for (i = uOffset = 0; i < pElem->nIn && uOffset < uLen - uReserved; i++)
    228228    {
    229         uint32_t cbSegLen = RT_MIN(uLen - cbReserved - uOffset, pElem->aSegsIn[i].cb - cbReserved);
     229        uint32_t cbSegLen = RT_MIN(uLen - uReserved - uOffset, pElem->aSegsIn[i].cb - cbReserved);
    230230        if (pElem->aSegsIn[i].pv)
    231231        {
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