Skip to contentSkip to conversation

EPS - Correct 2nd brand test

PATCH New Rafał Bilski 1 participant 1 message Feb 12, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 EPS - Correct 2nd brand test

Solution for small, but nasty bug: access beyond end of f_table for C7 brand.

---
 arch/i386/kernel/cpu/cpufreq/e_powersaver.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/i386/kernel/cpu/cpufreq/e_powersaver.c +1 -1
@@ -234,7 +234,7 @@ static int eps_cpu_init(struct cpufreq_policy *policy)
 
 	/* Fill frequency and MSR value table */
 	f_table = &centaur->freq_table[0];
-	if (brand == EPS_BRAND_EDEN) {
+	if (brand != EPS_BRAND_C7M) {
 		f_table[0].frequency = fsb * min_multiplier;
 		f_table[0].index = (min_multiplier << 8) | min_voltage;
 		f_table[1].frequency = fsb * max_multiplier;

----------------------------------------------------------------------
Na Walentynki odwiedz A.Morka

Quoted 1 line
Quoted 1 line

http://link.interia.pl/f1a10