From de10fe70e165c2b1c5d518a0ee5d51065b977b0c Mon Sep 17 00:00:00 2001 From: Andre Oppermann Date: Mon, 11 Oct 2004 20:01:43 +0000 Subject: [PATCH] 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 MFC after: 3 days --- sys/net/netisr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/net/netisr.c b/sys/net/netisr.c index a1d8f6f94391..c506e315ce0b 100644 --- a/sys/net/netisr.c +++ b/sys/net/netisr.c @@ -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 {