diff options
Diffstat (limited to 'drivers/net/e1000/e1000_main.c')
-rw-r--r-- | drivers/net/e1000/e1000_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/e1000/e1000_main.c b/drivers/net/e1000/e1000_main.c index 082c02918a41..bd673802e8ce 100644 --- a/drivers/net/e1000/e1000_main.c +++ b/drivers/net/e1000/e1000_main.c | |||
@@ -759,7 +759,7 @@ e1000_probe(struct pci_dev *pdev, | |||
759 | #ifdef CONFIG_NET_POLL_CONTROLLER | 759 | #ifdef CONFIG_NET_POLL_CONTROLLER |
760 | netdev->poll_controller = e1000_netpoll; | 760 | netdev->poll_controller = e1000_netpoll; |
761 | #endif | 761 | #endif |
762 | strcpy(netdev->name, pci_name(pdev)); | 762 | strncpy(netdev->name, pci_name(pdev), sizeof(netdev->name) - 1); |
763 | 763 | ||
764 | netdev->mem_start = mmio_start; | 764 | netdev->mem_start = mmio_start; |
765 | netdev->mem_end = mmio_start + mmio_len; | 765 | netdev->mem_end = mmio_start + mmio_len; |