Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 295445
b: refs/heads/master
c: 97324cd
h: refs/heads/master
i:
  295443: e7fd4aa
v: v3
  • Loading branch information
Eric W. Biederman committed Jan 25, 2012
1 parent bac894e commit 899150d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 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: a15e20982e2fbb06e85da584a0f150784042c17d
refs/heads/master: 97324cd804b7b9fb6044e114329335db79810425
4 changes: 4 additions & 0 deletions trunk/fs/proc/proc_sysctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1080,6 +1080,10 @@ void setup_sysctl_set(struct ctl_table_set *p,
p->is_seen = is_seen;
}

void retire_sysctl_set(struct ctl_table_set *set)
{
WARN_ON(!list_empty(&set->list));
}

int __init proc_sys_init(void)
{
Expand Down
1 change: 1 addition & 0 deletions trunk/include/linux/sysctl.h
Original file line number Diff line number Diff line change
Expand Up @@ -1072,6 +1072,7 @@ void proc_sys_poll_notify(struct ctl_table_poll *poll);
extern void setup_sysctl_set(struct ctl_table_set *p,
struct ctl_table_set *parent,
int (*is_seen)(struct ctl_table_set *));
extern void retire_sysctl_set(struct ctl_table_set *set);

void register_sysctl_root(struct ctl_table_root *root);
struct ctl_table_header *__register_sysctl_paths(
Expand Down
2 changes: 1 addition & 1 deletion trunk/net/sysctl_net.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ static int __net_init sysctl_net_init(struct net *net)

static void __net_exit sysctl_net_exit(struct net *net)
{
WARN_ON(!list_empty(&net->sysctls.list));
retire_sysctl_set(&net->sysctls);
}

static struct pernet_operations sysctl_pernet_ops = {
Expand Down

0 comments on commit 899150d

Please sign in to comment.