From: Dan Carpenter Date: Thu, 19 Apr 2012 07:00:19 +0000 (+0300) Subject: ksz884x: don't copy too much in netdev_set_mac_address() X-Git-Tag: v3.4-rc5~44^2~10 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=716af4abd6e6370226f567af50bfaca274515980;p=pandora-kernel.git ksz884x: don't copy too much in netdev_set_mac_address() MAX_ADDR_LEN is 32. ETH_ALEN is 6. mac->sa_data is a 14 byte array, so the memcpy() is doing a read past the end of the array. I asked about this on netdev and Ben Hutchings told me it's supposed to be copying ETH_ALEN bytes (thanks Ben). Signed-off-by: Dan Carpenter Signed-off-by: David S. Miller --- Reading git-diff-tree failed