Skip to content

Commit 71e5602

Browse files
committed
Merge branch 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull scheduler fixes from Ingo Molnar: "A memory (under-)allocation fix and a comment fix" * 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: sched/topology: Fix off by one bug sched/rt: Update comment in pick_next_task_rt()
2 parents 601a880 + 993f0b0 commit 71e5602

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

kernel/sched/rt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1561,7 +1561,7 @@ pick_next_task_rt(struct rq *rq, struct task_struct *prev, struct rq_flags *rf)
15611561

15621562
/*
15631563
* We may dequeue prev's rt_rq in put_prev_task().
1564-
* So, we update time before rt_nr_running check.
1564+
* So, we update time before rt_queued check.
15651565
*/
15661566
if (prev->sched_class == &rt_sched_class)
15671567
update_curr_rt(rq);

kernel/sched/topology.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1337,7 +1337,7 @@ void sched_init_numa(void)
13371337
int level = 0;
13381338
int i, j, k;
13391339

1340-
sched_domains_numa_distance = kzalloc(sizeof(int) * nr_node_ids, GFP_KERNEL);
1340+
sched_domains_numa_distance = kzalloc(sizeof(int) * (nr_node_ids + 1), GFP_KERNEL);
13411341
if (!sched_domains_numa_distance)
13421342
return;
13431343

0 commit comments

Comments
 (0)