summaryrefslogtreecommitdiff
path: root/drivers/net
diff options
context:
space:
mode:
authorKen Kawasaki <ken_kawasaki@nifty.com>2016-02-20 13:14:36 +0300
committerDavid S. Miller <davem@davemloft.net>2016-02-22 06:08:43 +0300
commit1ad5466812c0b4d7851f98573be6a332e82bc920 (patch)
treedbe2768a5f67d34ce275493ac5008c6313f3ff06 /drivers/net
parent14112ca5625db8a7fbdc724783510751577a8a1b (diff)
downloadlinux-1ad5466812c0b4d7851f98573be6a332e82bc920.tar.xz
fmvj18x_cs: fix incorrect indexing of dev->dev_addr[] when copying the MAC address
fix incorrect indexing of dev->dev_addr[] when copying the MAC address of FMV-J182 at buf[5]. Signed-off-by: Ken Kawasaki <ken_kawasaki@nifty.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/ethernet/fujitsu/fmvj18x_cs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/fujitsu/fmvj18x_cs.c b/drivers/net/ethernet/fujitsu/fmvj18x_cs.c
index a7139f588ad2..678f5018d0be 100644
--- a/drivers/net/ethernet/fujitsu/fmvj18x_cs.c
+++ b/drivers/net/ethernet/fujitsu/fmvj18x_cs.c
@@ -469,8 +469,8 @@ static int fmvj18x_config(struct pcmcia_device *link)
goto failed;
}
/* Read MACID from CIS */
- for (i = 5; i < 11; i++)
- dev->dev_addr[i] = buf[i];
+ for (i = 0; i < 6; i++)
+ dev->dev_addr[i] = buf[i + 5];
kfree(buf);
} else {
if (pcmcia_get_mac_from_cis(link, dev))