Commit 4855d6f3 authored by Igor Maravic's avatar Igor Maravic Committed by David S. Miller

net: ipv6: proc: Fix error handling

Fix error handling in case making of dir dev_snmp6 failes
Signed-off-by: default avatarIgor Maravic <igorm@etf.rs>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 7bd86cc2
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment