diff options
author | Igor Maravic <igorm@etf.rs> | 2012-08-13 00:31:58 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-08-14 23:45:07 +0200 |
commit | 4855d6f3116e891b66198838b683dce3dcf6e874 (patch) | |
tree | 82e69467073bf6d3c3f3be5967b3af52dd6e03dd /net | |
parent | ipv4: Cache local output routes (diff) | |
download | linux-4855d6f3116e891b66198838b683dce3dcf6e874.tar.xz linux-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')
-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 da2e92d05c15..745a32042950 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; } |