]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: bgmac: mac address change bug
authorHari Vyas <hariv@broadcom.com>
Thu, 2 Mar 2017 22:59:57 +0000 (17:59 -0500)
committerDavid S. Miller <davem@davemloft.net>
Fri, 3 Mar 2017 17:44:28 +0000 (09:44 -0800)
commit29bbe7edaf79996b4c8b546e5765a55d8fcb28f2
treee8563495264c20d363e421cdcd9aa3291b0d5bf8
parenta0902ca0204f060eb5e9a42a60b8ccef3045e0c3
net: ethernet: bgmac: mac address change bug

ndo_set_mac_address() passes struct sockaddr * as 2nd parameter to
bgmac_set_mac_address() but code assumed u8 *.  This caused two bytes
chopping and the wrong mac address was configured.

Signed-off-by: Hari Vyas <hariv@broadcom.com>
Signed-off-by: Jon Mason <jon.mason@broadcom.com>
Fixes: 08fbd77479e ("bgmac: write mac address to hardware in ndo_set_mac_address")
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bgmac.c