mirror of
https://github.com/torvalds/linux.git
synced 2024-11-12 15:11:50 +00:00
[CPUFREQ] Uninitialized use of cmd.val in arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c:acpi_cpufreq_target()
cmd.val was used uninitialized on the line below. Signed-off-by: Guillaume Chazarain <guichaz@yahoo.fr> Acked-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com> Signed-off-by: Dave Jones <davej@redhat.com>
This commit is contained in:
parent
24ebead82b
commit
76ff28c941
@ -420,6 +420,7 @@ static int acpi_cpufreq_target(struct cpufreq_policy *policy,
|
||||
msr =
|
||||
(u32) perf->states[next_perf_state].
|
||||
control & INTEL_MSR_RANGE;
|
||||
cmd.val = get_cur_val(online_policy_cpus);
|
||||
cmd.val = (cmd.val & ~INTEL_MSR_RANGE) | msr;
|
||||
break;
|
||||
case SYSTEM_IO_CAPABLE:
|
||||
|
Loading…
Reference in New Issue
Block a user