aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/net-sysfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/core/net-sysfs.c')
-rw-r--r--net/core/net-sysfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/net-sysfs.c b/net/core/net-sysfs.c
index 85cb8bdcfb8f..146dcfeb060e 100644
--- a/net/core/net-sysfs.c
+++ b/net/core/net-sysfs.c
@@ -494,7 +494,7 @@ int netdev_register_kobject(struct net_device *net)
494 dev->groups = groups; 494 dev->groups = groups;
495 495
496 BUILD_BUG_ON(BUS_ID_SIZE < IFNAMSIZ); 496 BUILD_BUG_ON(BUS_ID_SIZE < IFNAMSIZ);
497 strlcpy(dev->bus_id, net->name, BUS_ID_SIZE); 497 dev_set_name(dev, net->name);
498 498
499#ifdef CONFIG_SYSFS 499#ifdef CONFIG_SYSFS
500 *groups++ = &netstat_group; 500 *groups++ = &netstat_group;