summaryrefslogtreecommitdiffstats
path: root/net/ipv6/proc.c
diff options
context:
space:
mode:
authorIgor Maravic <igorm@etf.rs>2012-08-12 22:31:58 +0000
committerDavid S. Miller <davem@davemloft.net>2012-08-14 14:45:07 -0700
commit4855d6f3116e891b66198838b683dce3dcf6e874 (patch)
tree82e69467073bf6d3c3f3be5967b3af52dd6e03dd /net/ipv6/proc.c
parent7bd86cc282a458b66c41e3f6676de6656c99b8db (diff)
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.c4
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;
}