]> err.no Git - linux-2.6/commitdiff
[CPUFREQ] Uninitialized use of cmd.val in arch/i386/kernel/cpu/cpufreq/acpi-cpufreq...
authorGuillaume Chazarain <guichaz@yahoo.fr>
Tue, 2 Jan 2007 18:58:13 +0000 (19:58 +0100)
committerDave Jones <davej@redhat.com>
Wed, 3 Jan 2007 04:38:39 +0000 (23:38 -0500)
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>
arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c

index 563dcc82b9021d29a17fea05903ad7936964df20..10baa3501ed336c37b5d9a5662ce99484c48d651 100644 (file)
@@ -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: