From eugen@www.svzserv.kemerovo.su  Sun Apr 21 21:46:30 2002
Return-Path: <eugen@www.svzserv.kemerovo.su>
Received: from www.svzserv.kemerovo.su (www.svzserv.kemerovo.su [213.184.65.80])
	by hub.freebsd.org (Postfix) with ESMTP
	id F1D1037B417; Sun, 21 Apr 2002 21:46:26 -0700 (PDT)
Received: (from eugen@localhost)
	by www.svzserv.kemerovo.su (8.11.6/8.11.6) id g3M4kMr34201;
	Mon, 22 Apr 2002 12:46:22 +0800 (KRAST)
	(envelope-from eugen)
Message-Id: <200204220446.g3M4kMr34201@www.svzserv.kemerovo.su>
Date: Mon, 22 Apr 2002 12:46:22 +0800 (KRAST)
From: Eugene Grosbein <eugen@grosbein.pp.ru>
To: FreeBSD-gnats-submit@freebsd.org
Cc: jlemon@freebsd.org
Subject: [PATCH] le NIC driver still broken
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         37330
>Category:       kern
>Synopsis:       [PATCH] le NIC driver still broken
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    paul
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Apr 21 21:50:01 PDT 2002
>Closed-Date:    Wed Jun 05 16:40:39 PDT 2002
>Last-Modified:  Wed Jun 05 16:40:39 PDT 2002
>Originator:     Eugene Grosbein
>Release:        FreeBSD 4.5-STABLE i386
>Organization:
Svyaz Service
>Environment:
System: 4.5-STABLE FreeBSD 4.5-STABLE #1: Thu Apr 18 11:45:04 KRAST 2002
	DEC DE203 isa NIC

>Description:
	
	le NIC driver is still broken in STABLE: 
	ifconfig produces kernel panic. It's due to uninitialized
	ifp->if_init.

>How-To-Repeat:
	
	build kernel with le0, boot it and try to configure interface.
	You'll get kernel panic.

>Fix:

	Apply this patch to src/sys/i386/isa and get revived system.

--- if_le.c.orig	Mon Feb  4 10:44:06 2002
+++ if_le.c	Mon Apr 22 11:53:00 2002
@@ -346,6 +346,7 @@
     ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST;
     ifp->if_output = ether_output;
     ifp->if_ioctl = le_ioctl;
+    ifp->if_init = sc->if_init;
     ifp->if_type = IFT_ETHER;
     ifp->if_addrlen = 6;
     ifp->if_hdrlen = 14;


Eugene Grosbein
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->paul 
Responsible-Changed-By: johan 
Responsible-Changed-When: Tue Apr 23 17:20:25 PDT 2002 
Responsible-Changed-Why:  
Paul are you still the maintainer of if_le? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=37330 
State-Changed-From-To: open->closed 
State-Changed-By: paul 
State-Changed-When: Wed Jun 5 16:39:27 PDT 2002 
State-Changed-Why:  
Problem fixed - patch applied from PR 18641 

http://www.freebsd.org/cgi/query-pr.cgi?pr=37330 
>Unformatted:
