]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
[PATCH] sis190: failure to set the MAC address from EEPROM
authorFrancois Romieu <romieu@fr.zoreil.com>
Thu, 18 Jan 2007 22:22:23 +0000 (23:22 +0100)
committerChris Wright <chrisw@sous-sol.org>
Mon, 5 Feb 2007 16:31:43 +0000 (08:31 -0800)
Fix from http://bugzilla.kernel.org/show_bug.cgi?id=7747

Signed-off-by: Andrew Morton <akpm@osdl.org>
Cc: <sleepy@mike-neko.net>
Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
drivers/net/sis190.c

index aaba458584fbed8e8613a900b4edd8f8f9eb4fd6..de3344bdfdbc18389381b52070849b67098257b0 100644 (file)
@@ -1559,7 +1559,7 @@ static int __devinit sis190_get_mac_addr_from_eeprom(struct pci_dev *pdev,
        for (i = 0; i < MAC_ADDR_LEN / 2; i++) {
                __le16 w = sis190_read_eeprom(ioaddr, EEPROMMACAddr + i);
 
-               ((u16 *)dev->dev_addr)[0] = le16_to_cpu(w);
+               ((u16 *)dev->dev_addr)[i] = le16_to_cpu(w);
        }
 
        sis190_set_rgmii(tp, sis190_read_eeprom(ioaddr, EEPROMInfo));