diff options
author | Igor Maravic <igorm@etf.rs> | 2012-08-12 22:31:58 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-08-14 14:45:07 -0700 |
commit | 4855d6f3116e891b66198838b683dce3dcf6e874 (patch) | |
tree | 82e69467073bf6d3c3f3be5967b3af52dd6e03dd /net/ipv6/proc.c | |
parent | 7bd86cc282a458b66c41e3f6676de6656c99b8db (diff) | |
download | linux-3.10-4855d6f3116e891b66198838b683dce3dcf6e874.tar.gz linux-3.10-4855d6f3116e891b66198838b683dce3dcf6e874.tar.bz2 linux-3.10-4855d6f3116e891b66198838b683dce3dcf6e874.zip |
net: ipv6: proc: Fix error handling
Fix error handling in case making of dir dev_snmp6 failes
Signed-off-by: Igor Maravic <igorm@etf.rs>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/proc.c')
-rw-r--r-- | net/ipv6/proc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv6/proc.c b/net/ipv6/proc.c index da2e92d05c1..745a3204295 100644 --- a/net/ipv6/proc.c +++ b/net/ipv6/proc.c @@ -307,10 +307,10 @@ static int __net_init ipv6_proc_init_net(struct net *net) goto proc_dev_snmp6_fail; return 0; +proc_dev_snmp6_fail: + proc_net_remove(net, "snmp6"); proc_snmp6_fail: proc_net_remove(net, "sockstat6"); -proc_dev_snmp6_fail: - proc_net_remove(net, "dev_snmp6"); return -ENOMEM; } |