Subject: kern/15716:
To: None <gnats-bugs@gnats.netbsd.org>
From: None <andreasp@telia.com>
List: netbsd-bugs
Date: 02/24/2002 15:33:12
>Number:         15716
>Category:       kern
>Synopsis:       
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Feb 24 06:45:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        NetBSD 1.5.1
>Organization:
>Environment:
System: NetBSD trimalchio.peripatetic 1.5.3_ALPHA NetBSD 1.5.3_ALPHA (TRIMALCHIO) #1: Sun Feb 24 15:00:26 CET 2002 ap@trimalchio.peripatetic:/usr/src/sys/arch/i386/compile/TRIMALCHIO i386

>Description:
Kernel panics in if_sip.c when dhclient runs at start up. Its caused by an
unitialized pointer (m) in sip_start which gets passed to bpf_mtap as m0.
Sorry, didn't get a crash dump.

>How-To-Repeat:
>Fix:
Minimal effort fix, inspired by -current:
 
Index: if_sip.c
===================================================================
RCS file: /home/cvs/netbsd/syssrc/sys/dev/pci/if_sip.c,v
retrieving revision 1.11.4.6
diff -u -r1.11.4.6 if_sip.c
--- if_sip.c	2001/10/27 17:55:47	1.11.4.6
+++ if_sip.c	2002/02/24 14:22:21
@@ -690,6 +690,7 @@
 		IF_POLL(&ifp->if_snd, m0);
 		if (m0 == NULL)
 			break;
+		m = NULL;
 
 		dmamap = txs->txs_dmamap;
 
>Release-Note:
>Audit-Trail:
>Unformatted: