aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/marvell/skge.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ethernet/marvell/skge.c')
-rw-r--r--drivers/net/ethernet/marvell/skge.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/net/ethernet/marvell/skge.c b/drivers/net/ethernet/marvell/skge.c
index c7b60839ac99..3943f5f7bb4a 100644
--- a/drivers/net/ethernet/marvell/skge.c
+++ b/drivers/net/ethernet/marvell/skge.c
@@ -394,10 +394,11 @@ static void skge_get_drvinfo(struct net_device *dev,
394{ 394{
395 struct skge_port *skge = netdev_priv(dev); 395 struct skge_port *skge = netdev_priv(dev);
396 396
397 strcpy(info->driver, DRV_NAME); 397 strlcpy(info->driver, DRV_NAME, sizeof(info->driver));
398 strcpy(info->version, DRV_VERSION); 398 strlcpy(info->version, DRV_VERSION, sizeof(info->version));
399 strcpy(info->fw_version, "N/A"); 399 strlcpy(info->fw_version, "N/A", sizeof(info->fw_version));
400 strcpy(info->bus_info, pci_name(skge->hw->pdev)); 400 strlcpy(info->bus_info, pci_name(skge->hw->pdev),
401 sizeof(info->bus_info));
401} 402}
402 403
403static const struct skge_stat { 404static const struct skge_stat {