commit | 04e406dcc54cfd84d333ea673fa986fb5a1840e7 | [log] [tgz] |
---|---|---|
author | Jiri Pirko <jiri@resnulli.us> | Tue Jan 01 03:30:19 2013 +0000 |
committer | David S. Miller <davem@davemloft.net> | Thu Jan 03 22:37:36 2013 -0800 |
tree | 07a98d71770a7c61369df1600ec0977dffc8bc6c | |
parent | 646cbcdae50e9ef40d7b77673a1f1b7eb7c18be5 [diff] |
ll_temac: fix mac address setting Previously, when invalid address was passed to ndo_set_mac_address, random mac was generated and set. Fix this by returning -EADDRNOTAVAIL in this situation. Also polish the code around a bit. Signed-off-by: Jiri Pirko <jiri@resnulli.us> Signed-off-by: David S. Miller <davem@davemloft.net>