uli526x.c (41966710ab574f1fcedf3e10e1ceef911c096d1d) | uli526x.c (68aad78c5023b8aa82da99b47f9d8cf40e8ca453) |
---|---|
1/* 2 This program is free software; you can redistribute it and/or 3 modify it under the terms of the GNU General Public License 4 as published by the Free Software Foundation; either version 2 5 of the License, or (at your option) any later version. 6 7 This program is distributed in the hope that it will be useful, 8 but WITHOUT ANY WARRANTY; without even the implied warranty of --- 946 unchanged lines hidden (view full) --- 955 } 956} 957 958static void netdev_get_drvinfo(struct net_device *dev, 959 struct ethtool_drvinfo *info) 960{ 961 struct uli526x_board_info *np = netdev_priv(dev); 962 | 1/* 2 This program is free software; you can redistribute it and/or 3 modify it under the terms of the GNU General Public License 4 as published by the Free Software Foundation; either version 2 5 of the License, or (at your option) any later version. 6 7 This program is distributed in the hope that it will be useful, 8 but WITHOUT ANY WARRANTY; without even the implied warranty of --- 946 unchanged lines hidden (view full) --- 955 } 956} 957 958static void netdev_get_drvinfo(struct net_device *dev, 959 struct ethtool_drvinfo *info) 960{ 961 struct uli526x_board_info *np = netdev_priv(dev); 962 |
963 strcpy(info->driver, DRV_NAME); 964 strcpy(info->version, DRV_VERSION); | 963 strlcpy(info->driver, DRV_NAME, sizeof(info->driver)); 964 strlcpy(info->version, DRV_VERSION, sizeof(info->version)); |
965 if (np->pdev) | 965 if (np->pdev) |
966 strcpy(info->bus_info, pci_name(np->pdev)); | 966 strlcpy(info->bus_info, pci_name(np->pdev), 967 sizeof(info->bus_info)); |
967 else 968 sprintf(info->bus_info, "EISA 0x%lx %d", 969 dev->base_addr, dev->irq); 970} 971 972static int netdev_get_settings(struct net_device *dev, struct ethtool_cmd *cmd) { 973 struct uli526x_board_info *np = netdev_priv(dev); 974 --- 876 unchanged lines hidden --- | 968 else 969 sprintf(info->bus_info, "EISA 0x%lx %d", 970 dev->base_addr, dev->irq); 971} 972 973static int netdev_get_settings(struct net_device *dev, struct ethtool_cmd *cmd) { 974 struct uli526x_board_info *np = netdev_priv(dev); 975 --- 876 unchanged lines hidden --- |