Changeset 56589 in vbox for trunk/src/VBox
- Timestamp:
- Jun 22, 2015 9:15:52 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/VBoxNetFlt/win/drv/VBoxNetLwf-win.cpp
r56485 r56589 802 802 pModuleCtx->hFilter = hFilter; 803 803 vboxNetLwfWinChangeState(pModuleCtx, LwfState_Attaching); 804 /* Insert into module chain */805 NdisAcquireSpinLock(&pGlobals->Lock);806 RTListPrepend(&pGlobals->listModules, &pModuleCtx->node);807 NdisReleaseSpinLock(&pGlobals->Lock);808 804 /* Initialize transmission mutex and events */ 809 805 NDIS_INIT_MUTEX(&pModuleCtx->InTransmit); … … 855 851 return NDIS_STATUS_RESOURCES; 856 852 } 853 /* Insert into module chain */ 854 NdisAcquireSpinLock(&pGlobals->Lock); 855 RTListPrepend(&pGlobals->listModules, &pModuleCtx->node); 856 NdisReleaseSpinLock(&pGlobals->Lock); 857 857 858 858 vboxNetLwfWinChangeState(pModuleCtx, LwfState_Paused); … … 2333 2333 RtlInitAnsiString(&strInst, pThis->szName); 2334 2334 PVBOXNETLWF_MODULE pModuleCtx = NULL; 2335 NdisAcquireSpinLock(&g_VBoxNetLwfGlobals.Lock); 2335 2336 RTListForEach(&g_VBoxNetLwfGlobals.listModules, pModuleCtx, VBOXNETLWF_MODULE, node) 2336 2337 { … … 2338 2339 if (RtlEqualString(&strInst, &pModuleCtx->strMiniportName, TRUE)) 2339 2340 { 2341 NdisReleaseSpinLock(&g_VBoxNetLwfGlobals.Lock); 2340 2342 Log(("vboxNetFltOsInitInstance: found matching module, name=%s\n", pThis->szName)); 2341 2343 pThis->u.s.WinIf.hModuleCtx = pModuleCtx; … … 2347 2349 } 2348 2350 } 2351 NdisReleaseSpinLock(&g_VBoxNetLwfGlobals.Lock); 2349 2352 LogFlow(("<==vboxNetFltOsInitInstance: return VERR_INTNET_FLT_IF_NOT_FOUND\n")); 2350 2353 return VERR_INTNET_FLT_IF_NOT_FOUND;
Note:
See TracChangeset
for help on using the changeset viewer.