Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 352375
b: refs/heads/master
c: d166f21
h: refs/heads/master
i:
  352373: d268bbc
  352371: 6c5c84f
  352367: 2ae23d2
v: v3
  • Loading branch information
Rafał Miłecki authored and David S. Miller committed Feb 8, 2013
1 parent b228791 commit 681a9eb
Show file tree
Hide file tree
Showing 2 changed files with 7 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: e5e67305885eb12849b5475764b0542f03dc2b59
refs/heads/master: d166f218ff2bae0f6adae9ce5444a889a1d749e2
6 changes: 6 additions & 0 deletions trunk/drivers/net/ethernet/broadcom/bgmac.c
Original file line number Diff line number Diff line change
Expand Up @@ -1318,6 +1318,12 @@ static int bgmac_probe(struct bcma_device *core)
return -ENOTSUPP;
}

if (!is_valid_ether_addr(mac)) {
dev_err(&core->dev, "Invalid MAC addr: %pM\n", mac);
eth_random_addr(mac);
dev_warn(&core->dev, "Using random MAC: %pM\n", mac);
}

/* Allocation and references */
net_dev = alloc_etherdev(sizeof(*bgmac));
if (!net_dev)
Expand Down

0 comments on commit 681a9eb

Please sign in to comment.