diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/tehuti.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/tehuti.c b/drivers/net/tehuti.c index 4e1b84e6d66a..21230c97b2a0 100644 --- a/drivers/net/tehuti.c +++ b/drivers/net/tehuti.c | |||
@@ -2168,10 +2168,10 @@ bdx_get_drvinfo(struct net_device *netdev, struct ethtool_drvinfo *drvinfo) | |||
2168 | { | 2168 | { |
2169 | struct bdx_priv *priv = netdev->priv; | 2169 | struct bdx_priv *priv = netdev->priv; |
2170 | 2170 | ||
2171 | strncat(drvinfo->driver, BDX_DRV_NAME, sizeof(drvinfo->driver)); | 2171 | strlcat(drvinfo->driver, BDX_DRV_NAME, sizeof(drvinfo->driver)); |
2172 | strncat(drvinfo->version, BDX_DRV_VERSION, sizeof(drvinfo->version)); | 2172 | strlcat(drvinfo->version, BDX_DRV_VERSION, sizeof(drvinfo->version)); |
2173 | strncat(drvinfo->fw_version, "N/A", sizeof(drvinfo->fw_version)); | 2173 | strlcat(drvinfo->fw_version, "N/A", sizeof(drvinfo->fw_version)); |
2174 | strncat(drvinfo->bus_info, pci_name(priv->pdev), | 2174 | strlcat(drvinfo->bus_info, pci_name(priv->pdev), |
2175 | sizeof(drvinfo->bus_info)); | 2175 | sizeof(drvinfo->bus_info)); |
2176 | 2176 | ||
2177 | drvinfo->n_stats = ((priv->stats_flag) ? | 2177 | drvinfo->n_stats = ((priv->stats_flag) ? |