VirtualBox

Changeset 36909 in vbox


Ignore:
Timestamp:
May 2, 2011 1:10:10 PM (14 years ago)
Author:
vboxsync
Message:

VBoxNetAdp: Fix ref counting in non-strict/-debug builds.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/VBoxNetAdp/VBoxNetAdp.c

    r36907 r36909  
    602602        {
    603603            /* Found an empty slot -- use it. */
     604            uint32_t cRefs = ASMAtomicIncU32(&pThis->cRefs);
     605            Assert(cRefs == 1);
    604606            RTMAC Mac;
    605             Assert(ASMAtomicIncU32(&pThis->cRefs) == 1);
    606607            vboxNetAdpComposeMACAddress(pThis, &Mac);
    607608            rc = vboxNetAdpOsCreate(pThis, &Mac);
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