aboutsummaryrefslogtreecommitdiffstats
path: root/net/ethernet/eth.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ethernet/eth.c')
-rw-r--r--net/ethernet/eth.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/ethernet/eth.c b/net/ethernet/eth.c
index a2468363978..a93af86b847 100644
--- a/net/ethernet/eth.c
+++ b/net/ethernet/eth.c
@@ -288,6 +288,8 @@ int eth_mac_addr(struct net_device *dev, void *p)
288 if (!is_valid_ether_addr(addr->sa_data)) 288 if (!is_valid_ether_addr(addr->sa_data))
289 return -EADDRNOTAVAIL; 289 return -EADDRNOTAVAIL;
290 memcpy(dev->dev_addr, addr->sa_data, ETH_ALEN); 290 memcpy(dev->dev_addr, addr->sa_data, ETH_ALEN);
291 /* if device marked as NET_ADDR_RANDOM, reset it */
292 dev->addr_assign_type &= ~NET_ADDR_RANDOM;
291 return 0; 293 return 0;
292} 294}
293EXPORT_SYMBOL(eth_mac_addr); 295EXPORT_SYMBOL(eth_mac_addr);