VirtualBox

Changeset 4182 in vbox for trunk


Ignore:
Timestamp:
Aug 16, 2007 6:08:31 PM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
23673
Message:

Fixed a pagefault in the guest serial device on L4

File:
1 edited

Legend:

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

    r4142 r4182  
    223223    speed = 115200 / s->divider;
    224224    Log(("speed=%d parity=%c data=%d stop=%d\n", speed, parity, data_bits, stop_bits));
    225     s->pDrvChar->pfnSetParameters(s->pDrvChar, speed, parity, data_bits, stop_bits);
     225    if (RT_LIKELY(s->pDrvChar))
     226        s->pDrvChar->pfnSetParameters(s->pDrvChar, speed, parity, data_bits, stop_bits);
    226227}
    227228#endif
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