patch-2.4.0-test6 linux/drivers/net/eth16i.c

Next file: linux/drivers/net/fc/Makefile
Previous file: linux/drivers/net/eepro100.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test5/linux/drivers/net/eth16i.c linux/drivers/net/eth16i.c
@@ -663,7 +663,7 @@
 {
 	int i;
 	int retcode;
-	unsigned char dummy_packet[64] = { 0 };
+	unsigned char dummy_packet[64];
 
 	/* Powerup the chip */
 	outb(0xc0 | POWERUP, ioaddr + CONFIG_REG_1);
@@ -679,6 +679,7 @@
 
 	dummy_packet[12] = 0x00;
 	dummy_packet[13] = 0x04;
+	memset(dummy_packet + 14, 0, sizeof(dummy_packet) - 14);
 
 	eth16i_select_regbank(2, ioaddr);
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)