]> git.karo-electronics.de Git - mv-sheeva.git/commit
br_device: unify return value of .ndo_set_mac_address if address is invalid
authorDanny Kukawka <danny.kukawka@bisect.de>
Tue, 21 Feb 2012 02:07:52 +0000 (02:07 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Feb 2012 22:03:20 +0000 (17:03 -0500)
commit7ca1e11ab7d83ec76f3a8ef8704adca8c7518f41
tree47f1dad26d8d81e06ec10f9a212fd86ac6fc0ca8
parent15b8f4cf8ea6654c5642358c70b6e84909d99038
br_device: unify return value of .ndo_set_mac_address if address is invalid

Unify return value of .ndo_set_mac_address if the given address
isn't valid. Return -EADDRNOTAVAIL as eth_mac_addr() already does
if is_valid_ether_addr() fails.

Signed-off-by: Danny Kukawka <danny.kukawka@bisect.de>
Acked-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_device.c