Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 103628
b: refs/heads/master
c: 60bdde9
h: refs/heads/master
v: v3
  • Loading branch information
Pavel Emelyanov authored and David S. Miller committed Jul 18, 2008
1 parent df00b30 commit d6e8037
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8e3461d01bdbc3dbf993448ed9ad4acaaeb6495d
refs/heads/master: 60bdde95807e982a824be9cfdd35055cc721a88a
15 changes: 3 additions & 12 deletions trunk/net/ipv4/proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ static const struct file_operations netstat_seq_fops = {
static __net_init int ip_proc_init_net(struct net *net)
{
if (!proc_net_fops_create(net, "sockstat", S_IRUGO, &sockstat_seq_fops))
return -ENOMEM;
goto out_sockstat;
if (!proc_net_fops_create(net, "netstat", S_IRUGO, &netstat_seq_fops))
goto out_netstat;
if (!proc_net_fops_create(net, "snmp", S_IRUGO, &snmp_seq_fops))
Expand All @@ -520,6 +520,7 @@ static __net_init int ip_proc_init_net(struct net *net)
proc_net_remove(net, "netstat");
out_netstat:
proc_net_remove(net, "sockstat");
out_sockstat:
return -ENOMEM;
}

Expand All @@ -537,16 +538,6 @@ static __net_initdata struct pernet_operations ip_proc_ops = {

int __init ip_misc_proc_init(void)
{
int rc = 0;

if (register_pernet_subsys(&ip_proc_ops))
goto out_pernet;

out:
return rc;

out_pernet:
rc = -ENOMEM;
goto out;
return register_pernet_subsys(&ip_proc_ops);
}

0 comments on commit d6e8037

Please sign in to comment.