projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
14112ca
)
fmvj18x_cs: fix incorrect indexing of dev->dev_addr[] when copying the MAC address
author
Ken Kawasaki
<ken_kawasaki@nifty.com>
Sat, 20 Feb 2016 10:14:36 +0000
(19:14 +0900)
committer
David S. Miller
<davem@davemloft.net>
Mon, 22 Feb 2016 03:08:43 +0000
(22:08 -0500)
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>
drivers/net/ethernet/fujitsu/fmvj18x_cs.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/fujitsu/fmvj18x_cs.c
b/drivers/net/ethernet/fujitsu/fmvj18x_cs.c
index
a7139f5
..
678f501
100644
(file)
--- 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))