aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wimax/i2400m/netdev.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wimax/i2400m/netdev.c')
-rw-r--r--drivers/net/wimax/i2400m/netdev.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/wimax/i2400m/netdev.c b/drivers/net/wimax/i2400m/netdev.c
index 530581ca0191..48896138418f 100644
--- a/drivers/net/wimax/i2400m/netdev.c
+++ b/drivers/net/wimax/i2400m/netdev.c
@@ -599,12 +599,12 @@ static void i2400m_get_drvinfo(struct net_device *net_dev,
599{ 599{
600 struct i2400m *i2400m = net_dev_to_i2400m(net_dev); 600 struct i2400m *i2400m = net_dev_to_i2400m(net_dev);
601 601
602 strncpy(info->driver, KBUILD_MODNAME, sizeof(info->driver) - 1); 602 strlcpy(info->driver, KBUILD_MODNAME, sizeof(info->driver));
603 strncpy(info->fw_version, 603 strlcpy(info->fw_version, i2400m->fw_name ? : "",
604 i2400m->fw_name ? : "", sizeof(info->fw_version) - 1); 604 sizeof(info->fw_version));
605 if (net_dev->dev.parent) 605 if (net_dev->dev.parent)
606 strncpy(info->bus_info, dev_name(net_dev->dev.parent), 606 strlcpy(info->bus_info, dev_name(net_dev->dev.parent),
607 sizeof(info->bus_info) - 1); 607 sizeof(info->bus_info));
608} 608}
609 609
610static const struct ethtool_ops i2400m_ethtool_ops = { 610static const struct ethtool_ops i2400m_ethtool_ops = {