Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 237496
b: refs/heads/master
c: 85e6b8c
h: refs/heads/master
v: v3
  • Loading branch information
Ben Dooks authored and David S. Miller committed Feb 28, 2011
1 parent c304d7e commit b7f88bb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6f2e154b68b9321d958391bc0b1ffc2b90d57d71
refs/heads/master: 85e6b8c5d8be1e901b5402bfe42ce408912ab83e
7 changes: 6 additions & 1 deletion trunk/drivers/net/dm9000.c
Original file line number Diff line number Diff line change
Expand Up @@ -1592,10 +1592,15 @@ dm9000_probe(struct platform_device *pdev)
ndev->dev_addr[i] = ior(db, i+DM9000_PAR);
}

if (!is_valid_ether_addr(ndev->dev_addr))
if (!is_valid_ether_addr(ndev->dev_addr)) {
dev_warn(db->dev, "%s: Invalid ethernet MAC address. Please "
"set using ifconfig\n", ndev->name);

random_ether_addr(ndev->dev_addr);
mac_src = "random";
}


platform_set_drvdata(pdev, ndev);
ret = register_netdev(ndev);

Expand Down

0 comments on commit b7f88bb

Please sign in to comment.