mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-24 12:44:11 +08:00
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>
This commit is contained in:
parent
7391324ba4
commit
6b4ddf9950
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user