Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1511,7 +1511,7 @@ static const void *net_namespace(struct device *d)
	return dev_net(dev);
}

static struct class net_class = {
static struct class net_class __ro_after_init = {
	.name = "net",
	.dev_release = netdev_release,
	.dev_groups = net_class_groups,