Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 175537
b: refs/heads/master
c: a29ec08
h: refs/heads/master
i:
  175535: a682e2b
v: v3
  • Loading branch information
Denis Kirjanov authored and David S. Miller committed Dec 9, 2009
1 parent 90f132c commit 1ba60c9
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 64f16603eae17e869d5fc8a60ae987394190e639
refs/heads/master: a29ec08a1b649436248c140a3bc389bc11434c94
3 changes: 3 additions & 0 deletions trunk/drivers/net/mv643xx_eth.c
Original file line number Diff line number Diff line change
Expand Up @@ -1827,6 +1827,9 @@ static int mv643xx_eth_set_mac_address(struct net_device *dev, void *addr)
{
struct sockaddr *sa = addr;

if (!is_valid_ether_addr(sa->sa_data))
return -EINVAL;

memcpy(dev->dev_addr, sa->sa_data, ETH_ALEN);

netif_addr_lock_bh(dev);
Expand Down

0 comments on commit 1ba60c9

Please sign in to comment.