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

Commit f064a9de authored by Lingutla Chandrasekhar's avatar Lingutla Chandrasekhar
Browse files

sched: fix uninitialized variable usage



Select idle sibling does isolation check for uninitialized variable
instead of prev cpu.

Fix it by replacing the variable with prev_cpu.

Change-Id: Ib4557f583ea7fb7129c930e536138a6924a8cd94
Signed-off-by: default avatarLingutla Chandrasekhar <clingutla@codeaurora.org>
Signed-off-by: default avatarAbhijeet Dharmapurikar <adharmap@codeaurora.org>
parent 3424e1d3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -7137,7 +7137,7 @@ static inline int __select_idle_sibling(struct task_struct *p, int prev, int tar
	 * If the previous cpu is cache affine and idle, don't be stupid.
	 */
	if (prev != target && cpus_share_cache(prev, target) &&
				idle_cpu(prev) && !cpu_isolated(i))
				idle_cpu(prev) && !cpu_isolated(prev))
		return prev;

	sd = rcu_dereference(per_cpu(sd_llc, target));