Date: Mon, 25 May 1998 18:46:57 -0700 (PDT) From: sepotvin@videotron.ca To: freebsd-gnats-submit@FreeBSD.ORG Subject: kern/6757: if_zp do not probe the MAC address properly Message-ID: <199805260146.SAA22065@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 6757 >Category: kern >Synopsis: if_zp do not probe the MAC address properly >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon May 25 18:50:01 PDT 1998 >Last-Modified: >Originator: Stephane E. Potvin >Organization: IBM Canada Ltd. >Release: FreeBSD 3.0-980521-SNAP >Environment: FreeBSD azimov.videotron.ca 3.0-980521-SNAP FreeBSD 3.0-980521-SNAP #0: Sun May 24 14:12:46 EDT 1998 rubik@azimov.videotron.ca:/usr/local/src/sys/compile/AZIMOV i386 >Description: The driver uses a wrong index variable to store the value of the MAC address that was read from the card. The value read is written to a semi-random place in the kernel causing the system to crash a few seconds after booting. >How-To-Repeat: Boot a current kernel with a 3COM EtherLink III PCMCIA card inserted. >Fix: *** if_zp.c.orig Sat Mar 28 08:24:28 1998 --- if_zp.c Mon May 25 21:39:16 1998 *************** *** 542,548 **** short tmp_addr[3]; int j; for (j = 0; j < 3; j++) { ! tmp_addr[i] = htons(read_eeprom_data(BASE, j)); } bcopy(tmp_addr, sc->arpcom.ac_enaddr, 6); } --- 542,548 ---- short tmp_addr[3]; int j; for (j = 0; j < 3; j++) { ! tmp_addr[j] = htons(read_eeprom_data(BASE, j)); } bcopy(tmp_addr, sc->arpcom.ac_enaddr, 6); } >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199805260146.SAA22065>