Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2df7c68f authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "sched/core: fix possible out-of-bounds access in updown_migrate_values()"

parents a8cdf692 a6c5d0d4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -6884,7 +6884,7 @@ static void sched_update_updown_migrate_values(unsigned int *data,
	int i, cpu;
	static const struct cpumask *cluster_cpus[MAX_CLUSTERS];

	for (i = cpu = 0; (!cluster_cpus[i]) &&
	for (i = cpu = 0; i < MAX_CLUSTERS &&
				cpu < num_possible_cpus(); i++) {
		cluster_cpus[i] = topology_possible_sibling_cpumask(cpu);
		cpu += cpumask_weight(topology_possible_sibling_cpumask(cpu));