aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/broadcom/bcm63xx_enet.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ethernet/broadcom/bcm63xx_enet.c')
-rw-r--r--drivers/net/ethernet/broadcom/bcm63xx_enet.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/net/ethernet/broadcom/bcm63xx_enet.c b/drivers/net/ethernet/broadcom/bcm63xx_enet.c
index 39387d67b722..d8a151046728 100644
--- a/drivers/net/ethernet/broadcom/bcm63xx_enet.c
+++ b/drivers/net/ethernet/broadcom/bcm63xx_enet.c
@@ -1227,10 +1227,11 @@ static const u32 unused_mib_regs[] = {
1227static void bcm_enet_get_drvinfo(struct net_device *netdev, 1227static void bcm_enet_get_drvinfo(struct net_device *netdev,
1228 struct ethtool_drvinfo *drvinfo) 1228 struct ethtool_drvinfo *drvinfo)
1229{ 1229{
1230 strncpy(drvinfo->driver, bcm_enet_driver_name, 32); 1230 strlcpy(drvinfo->driver, bcm_enet_driver_name, sizeof(drvinfo->driver));
1231 strncpy(drvinfo->version, bcm_enet_driver_version, 32); 1231 strlcpy(drvinfo->version, bcm_enet_driver_version,
1232 strncpy(drvinfo->fw_version, "N/A", 32); 1232 sizeof(drvinfo->version));
1233 strncpy(drvinfo->bus_info, "bcm63xx", 32); 1233 strlcpy(drvinfo->fw_version, "N/A", sizeof(drvinfo->fw_version));
1234 strlcpy(drvinfo->bus_info, "bcm63xx", sizeof(drvinfo->bus_info));
1234 drvinfo->n_stats = BCM_ENET_STATS_LEN; 1235 drvinfo->n_stats = BCM_ENET_STATS_LEN;
1235} 1236}
1236 1237