Commit 6b4ddf99 authored by Joe Perches's avatar Joe Perches Committed by David S. Miller
Browse files

net: nixge: Fix misuse of strlcpy



Probable cut&paste typo - use the correct field size.

Signed-off-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 7391324b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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,