projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7391324
)
net: nixge: Fix misuse of strlcpy
author
Joe Perches
<joe@perches.com>
Thu, 4 Jul 2019 23:57:46 +0000
(16:57 -0700)
committer
David S. Miller
<davem@davemloft.net>
Mon, 8 Jul 2019 02:23:05 +0000
(19:23 -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/ni/nixge.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/ni/nixge.c
b/drivers/net/ethernet/ni/nixge.c
index 96f7a9818294052fac6c628ca73ce4f7e4e829b5..0b384f97d2fd8816dd566911986f92b6db59346b 100644
(file)
--- a/
drivers/net/ethernet/ni/nixge.c
+++ b/
drivers/net/ethernet/ni/nixge.c
@@
-990,7
+990,7
@@
static void nixge_ethtools_get_drvinfo(struct net_device *ndev,
struct ethtool_drvinfo *ed)
{
strlcpy(ed->driver, "nixge", sizeof(ed->driver));
- strlcpy(ed->bus_info, "platform", sizeof(ed->
driver
));
+ strlcpy(ed->bus_info, "platform", sizeof(ed->
bus_info
));
}
static int nixge_ethtools_get_coalesce(struct net_device *ndev,