arch/um/drivers/net_kern.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/um/drivers/net_kern.c b/arch/um/drivers/net_kern.c index 2ab233b..e44fd87 100644 --- a/arch/um/drivers/net_kern.c +++ b/arch/um/drivers/net_kern.c @@ -257,14 +257,14 @@ static void uml_net_tx_timeout(struct net_device *dev) static int uml_net_set_mac(struct net_device *dev, void *addr) { + int ret; struct uml_net_private *lp = netdev_priv(dev); - struct sockaddr *hwaddr = addr; spin_lock_irq(&lp->lock); - eth_mac_addr(dev, hwaddr->sa_data); + ret = eth_mac_addr(dev, addr); spin_unlock_irq(&lp->lock); - return 0; + return ret; } static int uml_net_change_mtu(struct net_device *dev, int new_mtu)