Skip to content

Commit

Permalink
net: nixge: Fix misuse of strlcpy
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Joe Perches authored and David S. Miller committed Jul 8, 2019
1 parent 7391324 commit 6b4ddf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/ni/nixge.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 6b4ddf9

Please sign in to comment.