svn commit: r237547 - head/sys/dev/re

Kevin Lo kevlo at FreeBSD.org
Mon Jun 25 05:47:14 UTC 2012


Author: kevlo
Date: Mon Jun 25 05:47:12 2012
New Revision: 237547
URL: http://svn.freebsd.org/changeset/base/237547

Log:
  Fix size of the bcopy when extracting ethernet address
  
  Obtained from:	DragonFly

Modified:
  head/sys/dev/re/if_re.c

Modified: head/sys/dev/re/if_re.c
==============================================================================
--- head/sys/dev/re/if_re.c	Mon Jun 25 05:41:16 2012	(r237546)
+++ head/sys/dev/re/if_re.c	Mon Jun 25 05:47:12 2012	(r237547)
@@ -1527,7 +1527,7 @@ re_attach(device_t dev)
 		re_read_eeprom(sc, (caddr_t)as, RL_EE_EADDR, 3);
 		for (i = 0; i < ETHER_ADDR_LEN / 2; i++)
 			as[i] = le16toh(as[i]);
-		bcopy(as, eaddr, sizeof(eaddr));
+		bcopy(as, eaddr, ETHER_ADDR_LEN);
 	}
 
 	if (sc->rl_type == RL_8169) {


More information about the svn-src-head mailing list