OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0799678
)
net: ethernet: sun4i-emac: Fix misuse of strlcpy
author
Joe Perches
<joe@perches.com>
Thu, 4 Jul 2019 23:57:45 +0000
(16:57 -0700)
committer
David S. Miller
<davem@davemloft.net>
Mon, 8 Jul 2019 02:22:03 +0000
(19:22 -0700)
Probable cut&paste typo - use the correct field size.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/allwinner/sun4i-emac.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/allwinner/sun4i-emac.c
b/drivers/net/ethernet/allwinner/sun4i-emac.c
index
9e06dff
..
40a359d
100644
(file)
--- a/
drivers/net/ethernet/allwinner/sun4i-emac.c
+++ b/
drivers/net/ethernet/allwinner/sun4i-emac.c
@@
-224,8
+224,8
@@
static int emac_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
static void emac_get_drvinfo(struct net_device *dev,
struct ethtool_drvinfo *info)
{
- strlcpy(info->driver, DRV_NAME, sizeof(
DRV_NAME
));
- strlcpy(info->version, DRV_VERSION, sizeof(
DRV_VERSION
));
+ strlcpy(info->driver, DRV_NAME, sizeof(
info->driver
));
+ strlcpy(info->version, DRV_VERSION, sizeof(
info->version
));
strlcpy(info->bus_info, dev_name(&dev->dev), sizeof(info->bus_info));
}