projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7bd86cc
)
net: ipv6: proc: Fix error handling
author
Igor Maravic
<igorm@etf.rs>
Sun, 12 Aug 2012 22:31:58 +0000
(22:31 +0000)
committer
David S. Miller
<davem@davemloft.net>
Tue, 14 Aug 2012 21:45:07 +0000
(14:45 -0700)
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>
net/ipv6/proc.c
patch
|
blob
|
history
diff --git
a/net/ipv6/proc.c
b/net/ipv6/proc.c
index da2e92d05c15a5052ea2cc19ba9bfc5751c23cf6..745a32042950127f3509781b6247b6434743d1d7 100644
(file)
--- 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;
}