summaryrefslogtreecommitdiffstats
path: root/sys/dev/if_ndis
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/if_ndis')
-rw-r--r--sys/dev/if_ndis/if_ndis.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/if_ndis/if_ndis.c b/sys/dev/if_ndis/if_ndis.c
index 00c5216..296d9a7 100644
--- a/sys/dev/if_ndis/if_ndis.c
+++ b/sys/dev/if_ndis/if_ndis.c
@@ -1129,11 +1129,13 @@ ndis_rxeof_eth(adapter, ctx, addr, hdr, hdrlen, lookahead, lookaheadlen, pktlen)
priv = (ndis_ethpriv *)&p->np_protocolreserved;
priv->nep_ctx = ctx;
- KeAcquireSpinLock(&block->nmb_lock, &irql);
+ if (!NDIS_SERIALIZED(block))
+ KeAcquireSpinLock(&block->nmb_lock, &irql);
InsertTailList((&block->nmb_packetlist), (&p->np_list));
- KeReleaseSpinLock(&block->nmb_lock, irql);
+ if (!NDIS_SERIALIZED(block))
+ KeReleaseSpinLock(&block->nmb_lock, irql);
return;
}
OpenPOWER on IntegriCloud