diff options
| author | 2013-01-01 03:30:19 +0000 | |
|---|---|---|
| committer | 2013-01-03 22:37:36 -0800 | |
| commit | 04e406dcc54cfd84d333ea673fa986fb5a1840e7 (patch) | |
| tree | 07a98d71770a7c61369df1600ec0977dffc8bc6c /net/core/dev.c | |
| parent | um: net: use eth_hw_addr_random() to generate random mac (diff) | |
| download | wireguard-linux-04e406dcc54cfd84d333ea673fa986fb5a1840e7.tar.xz wireguard-linux-04e406dcc54cfd84d333ea673fa986fb5a1840e7.zip | |
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>
Diffstat (limited to 'net/core/dev.c')
0 files changed, 0 insertions, 0 deletions
