Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1ad54668 authored by Ken Kawasaki's avatar Ken Kawasaki Committed by David S. Miller
Browse files

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: default avatarKen Kawasaki <ken_kawasaki@nifty.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 14112ca5
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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))