[PATCH net] net: ipv6: proc: Fix error handling

Subsystems: networking [general], the rest

STALE5108d

2 messages, 2 authors, 2012-08-14 · open the first message on its own page

[PATCH net] net: ipv6: proc: Fix error handling

From: <hidden>
Date: 2012-08-13 08:32:03

From: Igor Maravic <redacted>

Fix error handling in case making of dir dev_snmp6 failes

Signed-off-by: Igor Maravic <redacted>
---
 net/ipv6/proc.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/net/ipv6/proc.c b/net/ipv6/proc.c
index da2e92d..745a320 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;
 }
 
-- 
1.7.9.5

Re: [PATCH net] net: ipv6: proc: Fix error handling

From: David Miller <davem@davemloft.net>
Date: 2012-08-14 21:47:42

From: igorm@etf.rs
Date: Mon, 13 Aug 2012 10:31:58 +0200
From: Igor Maravic <redacted>

Fix error handling in case making of dir dev_snmp6 failes

Signed-off-by: Igor Maravic <redacted>
Applied.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help