diff options
Diffstat (limited to 'fs/proc/proc_sysctl.c')
-rw-r--r-- | fs/proc/proc_sysctl.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/proc/proc_sysctl.c b/fs/proc/proc_sysctl.c index dcd56f84db7e..a781bdf06694 100644 --- a/fs/proc/proc_sysctl.c +++ b/fs/proc/proc_sysctl.c | |||
@@ -142,6 +142,7 @@ static int insert_entry(struct ctl_table_header *head, struct ctl_table *entry) | |||
142 | } | 142 | } |
143 | 143 | ||
144 | rb_link_node(node, parent, p); | 144 | rb_link_node(node, parent, p); |
145 | rb_insert_color(node, &head->parent->root); | ||
145 | return 0; | 146 | return 0; |
146 | } | 147 | } |
147 | 148 | ||
@@ -168,10 +169,8 @@ static void init_header(struct ctl_table_header *head, | |||
168 | head->node = node; | 169 | head->node = node; |
169 | if (node) { | 170 | if (node) { |
170 | struct ctl_table *entry; | 171 | struct ctl_table *entry; |
171 | for (entry = table; entry->procname; entry++, node++) { | 172 | for (entry = table; entry->procname; entry++, node++) |
172 | rb_init_node(&node->node); | ||
173 | node->header = head; | 173 | node->header = head; |
174 | } | ||
175 | } | 174 | } |
176 | } | 175 | } |
177 | 176 | ||