net: ipv6: proc: Fix error handling
Subsystems (2)
PATCH 1/1 net: ipv6: proc: Fix error handling
From: Igor Maravic <[email protected]>
Fix error handling in case making of dir dev_snmp6 failes
Signed-off-by Igor Maravic <[email protected]>
--- net/ipv6/proc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
net/ipv6/proc.c +2 -2
@@ -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 ; }
Signature · 1 line
1.7.9.5
From: [email protected]
Date: Mon, 13 Aug 2012 10:31:58 +0200
Quoted 5 lines
From: Igor Maravic <[email protected]>
Fix error handling in case making of dir
dev_snmp6failesSigned-off-by Igor Maravic <[email protected]>
Applied.