fmvj18x_cs: The MAC address of FMV-J182 is stored at buf[5]
Subsystems (2)
PATCH 1/1 fmvj18x_cs: The MAC address of FMV-J182 is stored at buf[5]
The MAC address of FMV-J182 is stored at buf[5].
Signed-off-by Ken Kawasaki <[email protected]>
---
drivers/net/ethernet/fujitsu/fmvj18x_cs.c renamed from drivers/net/ethernet/fujitsu/fmvj18x_cs.c.orig +2 -2
@@ -469,8 +469,8 @@ static int fmvj18x_config(struct pcmcia_ 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))
David Miller
maintainerFrom: Ken Kawasaki <[email protected]>
Date: Sat, 20 Feb 2016 10:57:06 +0900
Quoted 4 lines
The MAC address of FMV-J182 is stored at buf[5].
Signed-off-by Ken Kawasaki <[email protected]>
This is an extremely poor and misleading description of your change.
The original code was accessing the MAC address properly at buf[5] by starting the iterator 'i' at 5.
The bug is that the indexing of dev->dev_addr[] is incorrect.
Please describe your change more accurately and resubmit this patch.
Thanks.