Skip to content

Commit

Permalink
net: ipv6: proc: Fix error handling
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Igor Maravic authored and David S. Miller committed Aug 14, 2012
1 parent 7bd86cc commit 4855d6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net/ipv6/proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 4855d6f

Please sign in to comment.