VirtualBox

Changeset 62211 in vbox


Ignore:
Timestamp:
Jul 13, 2016 9:12:03 AM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
108720
Message:

USB/DrvVUSBRootHub: Fix possible division by 0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/USB/DrvVUSBRootHub.cpp

    r61576 r62211  
    468468    }
    469469
    470     if (uNewFrameRate != pThis->uFrameRate)
     470    if (   uNewFrameRate != pThis->uFrameRate
     471        && uNewFrameRate)
    471472    {
    472473        LogFlow(("Frame rate changed from %u to %u\n", pThis->uFrameRate, uNewFrameRate));
     
    553554            rc = RTSemEventMultiWait(pThis->hSemEventPeriodFrame, RT_INDEFINITE_WAIT);
    554555            RTSemEventMultiReset(pThis->hSemEventPeriodFrame);
     556
     557            /*
     558             * Notify the device above about the frame rate changed if we are supposed to
     559             * process frames.
     560             */
     561            uint32_t uFrameRate = ASMAtomicReadU32(&pThis->uFrameRateDefault);
     562            if (uFrameRate)
     563                vusbRhR3CalcTimerIntervals(pThis, uFrameRate);
    555564        }
    556565
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette