Skip to content

Commit

Permalink
[CPUFREQ] Uninitialized use of cmd.val in arch/i386/kernel/cpu/cpufre…
Browse files Browse the repository at this point in the history
…q/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>
  • Loading branch information
Guillaume Chazarain authored and Dave Jones committed Jan 3, 2007
1 parent 24ebead commit 76ff28c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 76ff28c

Please sign in to comment.