~ubuntu-branches/ubuntu/precise/linux-lowlatency/precise-proposed

« back to all changes in this revision

Viewing changes to drivers/net/ethernet/dlink/sundance.c

  • Committer: Package Import Robot
  • Author(s): Luke Yelavich, Luke Yelavich, Upstream Kernel Changes
  • Date: 2012-04-04 18:49:36 UTC
  • Revision ID: package-import@ubuntu.com-20120404184936-tqu735914muv4wpg
Tags: 3.2.0-22.30
[ Luke Yelavich ]

* [Config] Update configs after rebase against Ubuntu-3.2.0-22.35

[ Upstream Kernel Changes ]

* Low-latency: Rebase against Ubuntu-3.2.0-22.35

Show diffs side-by-side

added added

removed removed

Lines of Context:
1634
1634
static void get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *info)
1635
1635
{
1636
1636
        struct netdev_private *np = netdev_priv(dev);
1637
 
        strcpy(info->driver, DRV_NAME);
1638
 
        strcpy(info->version, DRV_VERSION);
1639
 
        strcpy(info->bus_info, pci_name(np->pci_dev));
 
1637
        strlcpy(info->driver, DRV_NAME, sizeof(info->driver));
 
1638
        strlcpy(info->version, DRV_VERSION, sizeof(info->version));
 
1639
        strlcpy(info->bus_info, pci_name(np->pci_dev), sizeof(info->bus_info));
1640
1640
}
1641
1641
 
1642
1642
static int get_settings(struct net_device *dev, struct ethtool_cmd *ecmd)