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>
This commit is contained in:
parent
7bd86cc282
commit
4855d6f311
1 changed files with 2 additions and 2 deletions
|
@ -307,10 +307,10 @@ static int __net_init ipv6_proc_init_net(struct net *net)
|
||||||
goto proc_dev_snmp6_fail;
|
goto proc_dev_snmp6_fail;
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
proc_dev_snmp6_fail:
|
||||||
|
proc_net_remove(net, "snmp6");
|
||||||
proc_snmp6_fail:
|
proc_snmp6_fail:
|
||||||
proc_net_remove(net, "sockstat6");
|
proc_net_remove(net, "sockstat6");
|
||||||
proc_dev_snmp6_fail:
|
|
||||||
proc_net_remove(net, "dev_snmp6");
|
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue