mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
cpufreq: cpufreq_interactive: avoid NULL point access
Change-Id: Id21a45eff24575ade7786a88d076ddd50cba6520 Signed-off-by: Chen Liang <cl@rock-chips.com>
This commit is contained in:
@@ -1171,6 +1171,9 @@ static void cpufreq_interactive_input_event(struct input_handle *handle,
|
||||
now = ktime_to_us(ktime_get());
|
||||
for_each_online_cpu(i) {
|
||||
pcpu = &per_cpu(cpuinfo, i);
|
||||
if (!pcpu->policy)
|
||||
continue;
|
||||
|
||||
if (have_governor_per_policy())
|
||||
tunables = pcpu->policy->governor_data;
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user