Skip to content

Commit

Permalink
Track dispatch level for send complete indications
Browse files Browse the repository at this point in the history
  • Loading branch information
bonsaiviking committed May 20, 2021
1 parent 63cceb7 commit b179e6b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packetWin7/npf/npf/Write.c
Original file line number Diff line number Diff line change
Expand Up @@ -969,8 +969,6 @@ Return Value:
BOOLEAN FreeBufAfterWrite;
PNET_BUFFER_LIST pNetBufList;
PNET_BUFFER_LIST pNextNetBufList;
PNET_BUFFER Currbuff;
PMDL pMdl;
PNPCAP_FILTER_MODULE pFiltMod = (PNPCAP_FILTER_MODULE) FilterModuleContext;

TRACE_ENTER();
Expand All @@ -996,7 +994,10 @@ Return Value:
NPF_FreePackets(pNetBufList);

/* Lock the group */
NdisAcquireRWLockRead(pFiltMod->OpenInstancesLock, &lockState, 0);
NdisAcquireRWLockRead(pFiltMod->OpenInstancesLock, &lockState,
NDIS_TEST_SEND_COMPLETE_AT_DISPATCH_LEVEL(SendCompleteFlags)
? NDIS_RWL_AT_DISPATCH_LEVEL
: 0);

for (Curr = pFiltMod->OpenInstances.Next; Curr != NULL; Curr = Curr->Next)
{
Expand Down

0 comments on commit b179e6b

Please sign in to comment.