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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=136393

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 {