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

Commit ff538818 authored by Lucian Adrian Grijincu's avatar Lucian Adrian Grijincu Committed by David S. Miller
Browse files

sysctl: net: call unregister_net_sysctl_table where needed



ctl_table_headers registered with register_net_sysctl_table should
have been unregistered with the equivalent unregister_net_sysctl_table

Signed-off-by: default avatarLucian Adrian Grijincu <lucian.grijincu@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6c8c4446
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1680,7 +1680,7 @@ static void __devinet_sysctl_unregister(struct ipv4_devconf *cnf)
		return;

	cnf->sysctl = NULL;
	unregister_sysctl_table(t->sysctl_header);
	unregister_net_sysctl_table(t->sysctl_header);
	kfree(t->dev_name);
	kfree(t);
}
+1 −1
Original line number Diff line number Diff line
@@ -4537,7 +4537,7 @@ static void __addrconf_sysctl_unregister(struct ipv6_devconf *p)

	t = p->sysctl;
	p->sysctl = NULL;
	unregister_sysctl_table(t->sysctl_header);
	unregister_net_sysctl_table(t->sysctl_header);
	kfree(t->dev_name);
	kfree(t);
}