Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 295449
b: refs/heads/master
c: ec6a526
h: refs/heads/master
i:
  295447: e454573
v: v3
  • Loading branch information
Eric W. Biederman committed Jan 25, 2012
1 parent 7c02aae commit bd32fda
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6e9d5164153ad6539edd31e7afb02a3e79124cad
refs/heads/master: ec6a52668d0bbc6d648e978c327150254bf1ce7f
9 changes: 9 additions & 0 deletions trunk/fs/proc/proc_sysctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1076,6 +1076,7 @@ struct ctl_table_header *__register_sysctl_paths(
struct nsproxy *namespaces,
const struct ctl_path *path, struct ctl_table *table)
{
struct ctl_table *ctl_table_arg = table;
struct ctl_table_header *header = NULL;
const struct ctl_path *component;
char *new_path, *pos;
Expand All @@ -1090,7 +1091,15 @@ struct ctl_table_header *__register_sysctl_paths(
if (!pos)
goto out;
}
while (table->procname && table->child && !table[1].procname) {
pos = append_path(new_path, pos, table->procname);
if (!pos)
goto out;
table = table->child;
}
header = __register_sysctl_table(root, namespaces, new_path, table);
if (header)
header->ctl_table_arg = ctl_table_arg;
out:
kfree(new_path);
return header;
Expand Down

0 comments on commit bd32fda

Please sign in to comment.