mirror of
https://github.com/torvalds/linux.git
synced 2024-12-11 13:41:55 +00:00
net: ethernet: sun4i-emac: 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
0799678349
commit
7391324ba4
@ -224,8 +224,8 @@ static int emac_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
|
|||||||
static void emac_get_drvinfo(struct net_device *dev,
|
static void emac_get_drvinfo(struct net_device *dev,
|
||||||
struct ethtool_drvinfo *info)
|
struct ethtool_drvinfo *info)
|
||||||
{
|
{
|
||||||
strlcpy(info->driver, DRV_NAME, sizeof(DRV_NAME));
|
strlcpy(info->driver, DRV_NAME, sizeof(info->driver));
|
||||||
strlcpy(info->version, DRV_VERSION, sizeof(DRV_VERSION));
|
strlcpy(info->version, DRV_VERSION, sizeof(info->version));
|
||||||
strlcpy(info->bus_info, dev_name(&dev->dev), sizeof(info->bus_info));
|
strlcpy(info->bus_info, dev_name(&dev->dev), sizeof(info->bus_info));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user