net/natsami: store MAC into perm_addr
authorOtavio Salvador <otavio@ossystems.com.br>
Tue, 12 Apr 2011 05:30:41 +0000 (05:30 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 12 Apr 2011 21:56:00 +0000 (14:56 -0700)
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/natsemi.c

index aa2813e06d0033ebcc48f07967c884d9b20735d8..1074231f0a0d722a803bcc968372d9705b582a53 100644 (file)
@@ -860,6 +860,9 @@ static int __devinit natsemi_probe1 (struct pci_dev *pdev,
                prev_eedata = eedata;
        }
 
+       /* Store MAC Address in perm_addr */
+       memcpy(dev->perm_addr, dev->dev_addr, ETH_ALEN);
+
        dev->base_addr = (unsigned long __force) ioaddr;
        dev->irq = irq;