diff options
author | Joe Perches <joe@perches.com> | 2019-07-05 02:57:46 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-07-08 05:23:05 +0300 |
commit | 6b4ddf9950c38969f666dea1509955bd99120c4f (patch) | |
tree | 91f5eb54734c0fc8faa84967eabacf407a7ab3c1 /drivers/net/ethernet/ni | |
parent | 7391324ba485f1579afe1e1baa0a44309612b894 (diff) | |
download | linux-6b4ddf9950c38969f666dea1509955bd99120c4f.tar.xz |
net: nixge: Fix misuse of strlcpy
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>
Diffstat (limited to 'drivers/net/ethernet/ni')
-rw-r--r-- | drivers/net/ethernet/ni/nixge.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/ni/nixge.c b/drivers/net/ethernet/ni/nixge.c index 96f7a9818294..0b384f97d2fd 100644 --- 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, |