Skip to content

Commit

Permalink
sysctl: net: call unregister_net_sysctl_table where needed
Browse files Browse the repository at this point in the history
ctl_table_headers registered with register_net_sysctl_table should
have been unregistered with the equivalent unregister_net_sysctl_table

Signed-off-by: Lucian Adrian Grijincu <lucian.grijincu@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
luciang authored and davem330 committed May 2, 2011
1 parent 6c8c444 commit ff53881
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion net/ipv4/devinet.c
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion net/ipv6/addrconf.c
Expand Up @@ -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);
}
Expand Down

0 comments on commit ff53881

Please sign in to comment.