From 8f39f6d2c2776f3412d171f5b7eb80b0166fc275 Mon Sep 17 00:00:00 2001 From: andre Date: Mon, 11 Oct 2004 20:01:43 +0000 Subject: 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(+) (limited to 'sys/net/netisr.c') diff --git a/sys/net/netisr.c b/sys/net/netisr.c index a1d8f6f..c506e31 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 { -- cgit v1.1