VirtualBox

Ignore:
Timestamp:
Oct 11, 2010 3:56:04 PM (14 years ago)
Author:
vboxsync
Message:

nt,linux: Added missing flag validation in the RTSemEventMultiWaitEx* implementations.

Location:
trunk/src/VBox/Runtime/r0drv/linux
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r0drv/linux/semevent-r0drv-linux.c

    r33033 r33043  
    178178    AssertPtrReturn(pThis, VERR_INVALID_PARAMETER);
    179179    AssertMsgReturn(pThis->u32Magic == RTSEMEVENT_MAGIC, ("%p u32Magic=%RX32\n", pThis, pThis->u32Magic), VERR_INVALID_PARAMETER);
     180    AssertReturn(RTSEMWAIT_FLAGS_ARE_VALID(fFlags), VERR_INVALID_PARAMETER);
    180181    rtR0SemEventLnxRetain(pThis);
    181182
  • trunk/src/VBox/Runtime/r0drv/linux/semeventmulti-r0drv-linux.c

    r33033 r33043  
    6060/** @}  */
    6161
     62
    6263/*******************************************************************************
    6364*   Structures and Typedefs                                                    *
     
    7172    uint32_t volatile   u32Magic;
    7273    /** The object state bit and generation counter.
    73      * The generation counter is incremented every time the object is   */
     74     * The generation counter is incremented every time the object is
     75     * signalled. */
    7476    uint32_t volatile   fStateAndGen;
    7577    /** Reference counter. */
     
    241243    AssertPtrReturn(pThis, VERR_INVALID_PARAMETER);
    242244    AssertMsgReturn(pThis->u32Magic == RTSEMEVENTMULTI_MAGIC, ("%p u32Magic=%RX32\n", pThis, pThis->u32Magic), VERR_INVALID_PARAMETER);
     245    AssertReturn(RTSEMWAIT_FLAGS_ARE_VALID(fFlags), VERR_INVALID_PARAMETER);
    243246    rtR0SemEventMultiLnxRetain(pThis);
    244247
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