aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/linux/sysctl.h1
-rw-r--r--kernel/sysctl.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/sysctl.h b/include/linux/sysctl.h
index 3b6e2c9fbb2e..77de3bfd8744 100644
--- a/include/linux/sysctl.h
+++ b/include/linux/sysctl.h
@@ -1057,6 +1057,7 @@ struct ctl_table_header
1057 struct list_head ctl_entry; 1057 struct list_head ctl_entry;
1058 int used; 1058 int used;
1059 struct completion *unregistering; 1059 struct completion *unregistering;
1060 struct ctl_table *ctl_table_arg;
1060}; 1061};
1061 1062
1062/* struct ctl_path describes where in the hierarchy a table is added */ 1063/* struct ctl_path describes where in the hierarchy a table is added */
diff --git a/kernel/sysctl.c b/kernel/sysctl.c
index f580542333eb..89b7d95ecf51 100644
--- a/kernel/sysctl.c
+++ b/kernel/sysctl.c
@@ -1669,6 +1669,7 @@ struct ctl_table_header *register_sysctl_paths(const struct ctl_path *path,
1669 new += 2; 1669 new += 2;
1670 } 1670 }
1671 *prevp = table; 1671 *prevp = table;
1672 header->ctl_table_arg = table;
1672 1673
1673 INIT_LIST_HEAD(&header->ctl_entry); 1674 INIT_LIST_HEAD(&header->ctl_entry);
1674 header->used = 0; 1675 header->used = 0;