mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-17 10:26:15 +00:00
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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=136393
@ -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