From 6323469f9b72530eb90c96ba162cc70f2f4611de Mon Sep 17 00:00:00 2001 From: Milton Miller Date: Mon, 15 Oct 2007 17:00:19 +0200 Subject: [PATCH] sched: domain sysctl fixes: add terminator comment we had an incorrect-terminator bug in sd_alloc_ctl_domain_table() before, so add a comment that documents it. Signed-off-by: Milton Miller Signed-off-by: Ingo Molnar --- kernel/sched.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/sched.c b/kernel/sched.c index f40fe027723f..9887ca005c50 100644 --- a/kernel/sched.c +++ b/kernel/sched.c @@ -5303,6 +5303,7 @@ sd_alloc_ctl_domain_table(struct sched_domain *sd) sizeof(int), 0644, proc_dointvec_minmax); set_table_entry(&table[10], "flags", &sd->flags, sizeof(int), 0644, proc_dointvec_minmax); + /* &table[11] is terminator */ return table; } -- GitLab