VirtualBox

Changeset 77806 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Mar 20, 2019 12:52:20 PM (6 years ago)
Author:
vboxsync
Message:

Devices/UartCore: Fix assertion to avoid crash in release builds

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Serial/UartCore.cpp

    r77411 r77806  
    672672    if (ASMAtomicReadU32(&pThis->cbAvailRdr))
    673673    {
    674         AssertPtr(pThis->pDrvSerial);
    675674        size_t cbRead = 0;
    676675        int rc2 = pThis->pDrvSerial->pfnReadRdr(pThis->pDrvSerial, &pThis->uRegRbr, 1, &cbRead);
     
    690689static void uartR3DataFetch(PUARTCORE pThis)
    691690{
     691    AssertPtrReturnVoid(pThis->pDrvSerial);
     692
    692693    if (pThis->uRegFcr & UART_REG_FCR_FIFO_EN)
    693694        uartR3RecvFifoFill(pThis);
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