Bug 37330 - [PATCH] le NIC driver still broken
Summary: [PATCH] le NIC driver still broken
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 4.5-STABLE
Hardware: Any Any
: Normal Affects Only Me
Assignee: Paul Richards
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-04-22 05:50 UTC by Eugene Grosbein
Modified: 2002-06-06 00:40 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eugene Grosbein 2002-04-22 05:50:01 UTC
	
	le NIC driver is still broken in STABLE: 
	ifconfig produces kernel panic. It's due to uninitialized
	ifp->if_init.

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



Eugene Grosbein--9D5zY5P2Gw380nk7AfeBh4Z15Kop42H0p3UFkuCK8OZXaTs7
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

--- 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;
How-To-Repeat: 	
	build kernel with le0, boot it and try to configure interface.
	You'll get kernel panic.
Comment 1 Johan Karlsson freebsd_committer freebsd_triage 2002-04-24 01:20:25 UTC
Responsible Changed
From-To: freebsd-bugs->paul

Paul are you still the maintainer of if_le?
Comment 2 Paul Richards freebsd_committer freebsd_triage 2002-06-06 00:39:27 UTC
State Changed
From-To: open->closed

Problem fixed - patch applied from PR 18641