VirtualBox

Changeset 10549 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Jul 11, 2008 7:42:41 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
33240
Message:

Fixed two completely nutty SUPR0ObjRelease where the spinlock was acquired first. Fortunately these calls were in untrodden error paths.

File:
1 edited

Legend:

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

    r10548 r10549  
    12051205    AssertPtrReturn(pSession, VERR_INVALID_PARAMETER);
    12061206    AssertPtrReturn(pNetwork, VERR_INVALID_PARAMETER);
    1207     PINTNET         pIntNet = pNetwork->pIntNet;
    1208     RTSPINLOCKTMP   Tmp = RTSPINLOCKTMP_INITIALIZER;
    1209 
    1210     RTSpinlockAcquire(pIntNet->Spinlock, &Tmp);
     1207
    12111208    int rc = SUPR0ObjRelease(pNetwork->pvObj, pSession);
    1212     RTSpinlockRelease(pIntNet->Spinlock, &Tmp);
    12131209    LogFlow(("intnetNetworkClose: return %Vrc\n", rc));
    12141210    return rc;
     
    13461342                            *ppNetwork = pCur;
    13471343                        else
    1348                         {
    1349                             RTSpinlockAcquire(pIntNet->Spinlock, &Tmp);
    13501344                            SUPR0ObjRelease(pCur->pvObj, pSession);
    1351                             RTSpinlockRelease(pIntNet->Spinlock, &Tmp);
    1352                         }
    13531345                    }
    13541346                }
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