VirtualBox

Changeset 55842 in vbox for trunk


Ignore:
Timestamp:
May 13, 2015 9:59:55 AM (10 years ago)
Author:
vboxsync
Message:

SrvIntNetR0.cpp: aAddrBlacklist was destroyed too early in intnetR0NetworkDestruct and with spinlocks held. Instead do it after quiescing when we're freeing the other resources.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/SrvIntNetR0.cpp

    r55652 r55842  
    58585858    RTSpinlockAcquire(pNetwork->hAddrSpinlock);
    58595859
    5860     for (int i = kIntNetAddrType_Invalid + 1; i < kIntNetAddrType_End; i++)
    5861         intnetR0IfAddrCacheDestroy(&pNetwork->aAddrBlacklist[i]);
    5862 
    58635860    uint32_t iIf = pNetwork->MacTab.cEntries;
    58645861    while (iIf-- > 0)
     
    59405937    RTMemFree(pNetwork->MacTab.paEntries);
    59415938    pNetwork->MacTab.paEntries = NULL;
     5939    for (int i = kIntNetAddrType_Invalid + 1; i < kIntNetAddrType_End; i++)
     5940        intnetR0IfAddrCacheDestroy(&pNetwork->aAddrBlacklist[i]);
    59425941    RTMemFree(pNetwork);
    59435942
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