Commit e6d473e6 authored by stephen hemminger's avatar stephen hemminger Committed by David S. Miller

net: make net_class ro_after_init

The net_class in sysfs is only modified on init.
Signed-off-by: default avatarStephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b793dc5c
...@@ -1511,7 +1511,7 @@ static const void *net_namespace(struct device *d) ...@@ -1511,7 +1511,7 @@ static const void *net_namespace(struct device *d)
return dev_net(dev); return dev_net(dev);
} }
static struct class net_class = { static struct class net_class __ro_after_init = {
.name = "net", .name = "net",
.dev_release = netdev_release, .dev_release = netdev_release,
.dev_groups = net_class_groups, .dev_groups = net_class_groups,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment