Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 10205
b: refs/heads/master
c: db0276b
h: refs/heads/master
i:
  10203: a66e9ab
v: v3
  • Loading branch information
John W. Linville authored and Jeff Garzik committed Sep 14, 2005
1 parent 916ac13 commit 66b76e4
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 78b345890a91dc57fecea8b6792012e0098c058f
refs/heads/master: db0276b060918fac94c9d216213a31ee02cdd73e
4 changes: 3 additions & 1 deletion trunk/drivers/net/pcnet32.c
Original file line number Diff line number Diff line change
Expand Up @@ -957,6 +957,7 @@ static struct ethtool_ops pcnet32_ethtool_ops = {
.phys_id = pcnet32_phys_id,
.get_regs_len = pcnet32_get_regs_len,
.get_regs = pcnet32_get_regs,
.get_perm_addr = ethtool_op_get_perm_addr,
};

/* only probes for non-PCI devices, the rest are handled by
Expand Down Expand Up @@ -1185,9 +1186,10 @@ pcnet32_probe1(unsigned long ioaddr, int shared, struct pci_dev *pdev)
memcpy(dev->dev_addr, promaddr, 6);
}
}
memcpy(dev->perm_addr, dev->dev_addr, dev->addr_len);

/* if the ethernet address is not valid, force to 00:00:00:00:00:00 */
if (!is_valid_ether_addr(dev->dev_addr))
if (!is_valid_ether_addr(dev->perm_addr))
memset(dev->dev_addr, 0, sizeof(dev->dev_addr));

if (pcnet32_debug & NETIF_MSG_PROBE) {
Expand Down

0 comments on commit 66b76e4

Please sign in to comment.