Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Jun 2012 05:47:12 +0000 (UTC)
From:      Kevin Lo <kevlo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r237547 - head/sys/dev/re
Message-ID:  <201206250547.q5P5lCN6053176@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201206250547.q5P5lCN6053176>