1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-19 10:53:58 +00:00

Avoid trying to queue up an interrupt handler DPC if the driver

hasn't called NdisMRegisterInterrupt() yet.
This commit is contained in:
Bill Paul 2005-05-08 09:36:16 +00:00
parent 0ad8336bc5
commit 971aba5809
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=146000

View File

@ -1152,7 +1152,7 @@ ndis_intr(arg)
ifp = &sc->arpcom.ac_if;
intr = sc->ndis_block->nmb_interrupt;
if (sc->ndis_block->nmb_miniportadapterctx == NULL)
if (intr == NULL || sc->ndis_block->nmb_miniportadapterctx == NULL)
return;
KeAcquireSpinLock(&intr->ni_dpccountlock, &irql);