* [PATCH net] net: ipv6: proc: Fix error handling
@ 2012-08-13 8:31 igorm
2012-08-14 21:47 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: igorm @ 2012-08-13 8:31 UTC (permalink / raw)
To: netdev; +Cc: davem, Igor Maravic
From: Igor Maravic <igorm@etf.rs>
Fix error handling in case making of dir dev_snmp6 failes
Signed-off-by: Igor Maravic <igorm@etf.rs>
---
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net] net: ipv6: proc: Fix error handling
2012-08-13 8:31 [PATCH net] net: ipv6: proc: Fix error handling igorm
@ 2012-08-14 21:47 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2012-08-14 21:47 UTC (permalink / raw)
To: igorm; +Cc: netdev
From: igorm@etf.rs
Date: Mon, 13 Aug 2012 10:31:58 +0200
> From: Igor Maravic <igorm@etf.rs>
>
> Fix error handling in case making of dir dev_snmp6 failes
>
> Signed-off-by: Igor Maravic <igorm@etf.rs>
Applied.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-08-14 21:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-13 8:31 [PATCH net] net: ipv6: proc: Fix error handling igorm
2012-08-14 21:47 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).