]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Avoid sleeping with mutex held in kern_ndis.c.
authorwpaul <wpaul@FreeBSD.org>
Thu, 5 May 2005 06:14:59 +0000 (06:14 +0000)
committerwpaul <wpaul@FreeBSD.org>
Thu, 5 May 2005 06:14:59 +0000 (06:14 +0000)
commit077b71e0fa3ad5840a2b555ba5e3a6a921112309
tree410c6511abb92016ae44b5b4c2a55f0549a00b7b
parentbb2b136388b6487eb1e2e1fe0e86f28e49864d25
Avoid sleeping with mutex held in kern_ndis.c.

Remove unused fields from ndis_miniport_block.

Fix a bug in KeFlushQueuedDpcs() (we weren't calculating the kq pointer
correctly).

In if_ndis.c, clear the IFF_RUNNING flag before calling ndis_halt_nic().

Add some guards in kern_ndis.c to avoid letting anyone invoke ndis_get_info()
or ndis_set_info() if the NIC isn't fully initialized. Apparently, mdnsd
will sometimes try to invoke the ndis_ioctl() routine at exactly the
wrong moment (to futz with its multicast filters) when the interface
comes up, and can trigger a crash unless we guard against it.
sys/compat/ndis/kern_ndis.c
sys/compat/ndis/ndis_var.h
sys/compat/ndis/subr_ntoskrnl.c
sys/dev/if_ndis/if_ndis.c