aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/proc/proc_sysctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/proc/proc_sysctl.c b/fs/proc/proc_sysctl.c
index 1b1f5b8f4e0f..27e265ba1afe 100644
--- a/fs/proc/proc_sysctl.c
+++ b/fs/proc/proc_sysctl.c
@@ -1547,7 +1547,7 @@ void setup_sysctl_set(struct ctl_table_set *set,
1547 struct ctl_table_root *root, 1547 struct ctl_table_root *root,
1548 int (*is_seen)(struct ctl_table_set *)) 1548 int (*is_seen)(struct ctl_table_set *))
1549{ 1549{
1550 memset(set, sizeof(*set), 0); 1550 memset(set, 0, sizeof(*set));
1551 set->is_seen = is_seen; 1551 set->is_seen = is_seen;
1552 init_header(&set->dir.header, root, set, NULL, root_table); 1552 init_header(&set->dir.header, root, set, NULL, root_table);
1553} 1553}