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

Commit 67011dc1 authored by Mahesh Sivasubramanian's avatar Mahesh Sivasubramanian
Browse files

drivers: cpuidle: lpm-levels: Check for null parent



Check for NULL parent before accessing the timer associated with the timer

Change-Id: I53efe765e02ff2197951c5cc9d06a600749d36c6
Signed-off-by: default avatarMahesh Sivasubramanian <msivasub@codeaurora.org>
parent b2d0c2f6
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -381,6 +381,8 @@ static void clusttimer_cancel(void)
	struct lpm_cluster *cluster = per_cpu(cpu_cluster, cpu);

	hrtimer_try_to_cancel(&cluster->histtimer);

	if (cluster->parent)
		hrtimer_try_to_cancel(&cluster->parent->histtimer);
}