Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 290088
b: refs/heads/master
c: c8585bd
h: refs/heads/master
v: v3
  • Loading branch information
Danny Kukawka authored and David S. Miller committed Feb 13, 2012
1 parent 6c75193 commit 637a299
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4c507d2897bd9be810b3403ade73b04cf6fdfd4a
refs/heads/master: c8585bd89e2e3c87eab6ca711e09b3af20fd469b
2 changes: 2 additions & 0 deletions trunk/net/ethernet/eth.c
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,8 @@ int eth_mac_addr(struct net_device *dev, void *p)
if (!is_valid_ether_addr(addr->sa_data))
return -EADDRNOTAVAIL;
memcpy(dev->dev_addr, addr->sa_data, ETH_ALEN);
/* if device marked as NET_ADDR_RANDOM, reset it */
dev->addr_assign_type &= ~NET_ADDR_RANDOM;
return 0;
}
EXPORT_SYMBOL(eth_mac_addr);
Expand Down

0 comments on commit 637a299

Please sign in to comment.