Correctly unregister a netisr by clearing the ni->ni_queue field to NULL as

well.  This field is actually used by various netisr functions to determine
the availablility of the specified netisr.  This uncomplete unregister leads
directly to a crash when the KLD unregistering the netisr is unloaded.

Submitted by:	Sam <sah@softcardsystems.com>
MFC after:	3 days
This commit is contained in:
Andre Oppermann 2004-10-11 20:01:43 +00:00
parent 8909901fdd
commit de10fe70e1

View File

@ -185,6 +185,7 @@ netisr_unregister(int num)
ni->ni_handler = NULL;
if (ni->ni_queue != NULL)
IF_DRAIN(ni->ni_queue);
ni->ni_queue = NULL;
}
struct isrstat {