diff options
author | Ken Kawasaki <ken_kawasaki@nifty.com> | 2016-02-20 19:14:36 +0900 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-02-21 22:08:43 -0500 |
commit | 1ad5466812c0b4d7851f98573be6a332e82bc920 (patch) | |
tree | dbe2768a5f67d34ce275493ac5008c6313f3ff06 /drivers/net/ethernet/fujitsu | |
parent | 14112ca5625db8a7fbdc724783510751577a8a1b (diff) | |
download | linux-1ad5466812c0b4d7851f98573be6a332e82bc920.tar.bz2 |
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/ethernet/fujitsu')
-rw-r--r-- | drivers/net/ethernet/fujitsu/fmvj18x_cs.c | 4 |
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)) |