svn commit: r238019 - stable/8/sys/dev/re

Marius Strobl marius at FreeBSD.org
Mon Jul 2 20:07:10 UTC 2012


Author: marius
Date: Mon Jul  2 20:07:09 2012
New Revision: 238019
URL: http://svn.freebsd.org/changeset/base/238019

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

Modified:
  stable/8/sys/dev/re/if_re.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/boot/   (props changed)
  stable/8/sys/cddl/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)
  stable/8/sys/dev/e1000/   (props changed)

Modified: stable/8/sys/dev/re/if_re.c
==============================================================================
--- stable/8/sys/dev/re/if_re.c	Mon Jul  2 20:01:48 2012	(r238018)
+++ stable/8/sys/dev/re/if_re.c	Mon Jul  2 20:07:09 2012	(r238019)
@@ -1523,7 +1523,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-stable-8 mailing list