diff options
Diffstat (limited to 'kernel/sched/core.c')
-rw-r--r-- | kernel/sched/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched/core.c b/kernel/sched/core.c index a78c5b62a470..45d077ed24fb 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c | |||
@@ -6231,7 +6231,7 @@ static void sched_init_numa(void) | |||
6231 | /* Compute default topology size */ | 6231 | /* Compute default topology size */ |
6232 | for (i = 0; sched_domain_topology[i].mask; i++); | 6232 | for (i = 0; sched_domain_topology[i].mask; i++); |
6233 | 6233 | ||
6234 | tl = kzalloc((i + level) * | 6234 | tl = kzalloc((i + level + 1) * |
6235 | sizeof(struct sched_domain_topology_level), GFP_KERNEL); | 6235 | sizeof(struct sched_domain_topology_level), GFP_KERNEL); |
6236 | if (!tl) | 6236 | if (!tl) |
6237 | return; | 6237 | return; |