diff options
author | jmb <jmb@FreeBSD.org> | 1998-05-26 02:28:18 +0000 |
---|---|---|
committer | jmb <jmb@FreeBSD.org> | 1998-05-26 02:28:18 +0000 |
commit | 0a78d0184d9e5ab3c8708da2bed0ebf89a5c918a (patch) | |
tree | c21c77e4fd85d63fb842600dd1f2cb3b05d7c1d2 /sys/i386/isa/if_zp.c | |
parent | 57e422edf21dccbcdd2d706960559296530d219d (diff) | |
download | FreeBSD-src-0a78d0184d9e5ab3c8708da2bed0ebf89a5c918a.zip FreeBSD-src-0a78d0184d9e5ab3c8708da2bed0ebf89a5c918a.tar.gz |
code was using wrong temporary variable "i", in place of "j".
i contains the contents of the EP_W0_CONFIG_CTRL register.
i was being used as the array index into an array on the stack.
j is initialized to 0 as it should be.
PR: kern/6757
Reviewed by: jmb
Submitted by: Stephane E. Potvin <sepotvin@videotron.ca>
Diffstat (limited to 'sys/i386/isa/if_zp.c')
-rw-r--r-- | sys/i386/isa/if_zp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/i386/isa/if_zp.c b/sys/i386/isa/if_zp.c index 106b1e3..f4b2de0 100644 --- a/sys/i386/isa/if_zp.c +++ b/sys/i386/isa/if_zp.c @@ -34,7 +34,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * From: if_ep.c,v 1.9 1994/01/25 10:46:29 deraadt Exp $ - * $Id: if_zp.c,v 1.45 1998/02/13 06:49:16 bde Exp $ + * $Id: if_zp.c,v 1.46 1998/03/28 13:24:28 bde Exp $ */ /*- * TODO: @@ -542,7 +542,7 @@ zpattach(isa_dev) short tmp_addr[3]; int j; for (j = 0; j < 3; j++) { - tmp_addr[i] = htons(read_eeprom_data(BASE, j)); + tmp_addr[j] = htons(read_eeprom_data(BASE, j)); } bcopy(tmp_addr, sc->arpcom.ac_enaddr, 6); } |