patch-2.4.26 linux-2.4.26/drivers/net/sk_mca.c

Next file: linux-2.4.26/drivers/net/sungem.c
Previous file: linux-2.4.26/drivers/net/sk98lin/skxmac2.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.25/drivers/net/sk_mca.c linux-2.4.26/drivers/net/sk_mca.c
@@ -1048,13 +1048,13 @@
 		block.Mode &= ~LANCE_INIT_PROM;
 
 	if (dev->flags & IFF_ALLMULTI) {	/* get all multicasts */
-		memset(block.LAdrF, 8, 0xff);
+		memset(block.LAdrF, 0xff, sizeof(block.LAdrF));
 	} else {		/* get selected/no multicasts */
 
 		struct dev_mc_list *mptr;
 		int code;
 
-		memset(block.LAdrF, 8, 0x00);
+		memset(block.LAdrF, 0, sizeof(block.LAdrF));
 		for (mptr = dev->mc_list; mptr != NULL; mptr = mptr->next) {
 			code = GetHash(mptr->dmi_addr);
 			block.LAdrF[(code >> 3) & 7] |= 1 << (code & 7);

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