projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
17b6f24
)
net: ethernet: freescale: fec_main.c: Cleaning up missing null-terminate in conjuncti...
author
Rickard Strandqvist
<
[email protected]
>
Sun, 14 Sep 2014 17:32:42 +0000
(19:32 +0200)
committer
David S. Miller
<
[email protected]
>
Mon, 15 Sep 2014 18:17:00 +0000
(14:17 -0400)
Replacing strncpy with strlcpy to avoid strings that lacks null terminate.
Signed-off-by: Rickard Strandqvist <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/ethernet/freescale/fec_main.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/freescale/fec_main.c
b/drivers/net/ethernet/freescale/fec_main.c
index e242eacfc430739c69a049b86816c4bc7ffa6abf..6e93336d1d207a7f6ec7ba3067b11fb3a8731f1d 100644
(file)
--- a/
drivers/net/ethernet/freescale/fec_main.c
+++ b/
drivers/net/ethernet/freescale/fec_main.c
@@
-1846,13
+1846,13
@@
static int fec_enet_mii_probe(struct net_device *ndev)
continue;
if (dev_id--)
continue;
- str
n
cpy(mdio_bus_id, fep->mii_bus->id, MII_BUS_ID_SIZE);
+ str
l
cpy(mdio_bus_id, fep->mii_bus->id, MII_BUS_ID_SIZE);
break;
}
if (phy_id >= PHY_MAX_ADDR) {
netdev_info(ndev, "no PHY, assuming direct connection to switch\n");
- str
n
cpy(mdio_bus_id, "fixed-0", MII_BUS_ID_SIZE);
+ str
l
cpy(mdio_bus_id, "fixed-0", MII_BUS_ID_SIZE);
phy_id = 0;
}