diff options
author | Ken Kawasaki <ken_kawasaki@nifty.com> | 2016-02-20 11:14:36 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-02-22 04:08:43 +0100 |
commit | 1ad5466812c0b4d7851f98573be6a332e82bc920 (patch) | |
tree | dbe2768a5f67d34ce275493ac5008c6313f3ff06 /drivers/net/ethernet/fujitsu | |
parent | Driver: Vmxnet3: Update Rx ring 2 max size (diff) | |
download | linux-1ad5466812c0b4d7851f98573be6a332e82bc920.tar.xz linux-1ad5466812c0b4d7851f98573be6a332e82bc920.zip |
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)) |