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:
parent
8909901fdd
commit
de10fe70e1
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user