Skip to contentSkip to conversation

speedstep-smi: fail on failure to aquire "ownership"

PATCH New Dominik Brodowski 1 participant 1 message Nov 4, 2003

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 speedstep-smi: fail on failure to aquire "ownership"

Abort if there is a failure in aquiring "ownership" of the SMI speedstep interface.

arch/i386/kernel/cpu/cpufreq/speedstep-smi.c +3 -1
diff -ruN linux-original/arch/i386/kernel/cpu/cpufreq/speedstep-smi.c linux/arch/i386/kernel/cpu/cpufreq/speedstep-smi.c
@@ -226,8 +226,10 @@
 
 	result = speedstep_smi_ownership();
 
-	if (result)
+	if (result) {
 		dprintk(KERN_INFO "cpufreq: fails an aquiring ownership of a SMI interface.\n");
+		return -EINVAL;
+	}
 
 	/* detect low and high frequency */
 	result = speedstep_smi_get_freqs(&speedstep_freqs[SPEEDSTEP_LOW].frequency,

_______________________________________________
Cpufreq mailing list
[email protected]
http://www.linux.org.uk/mailman/listinfo/cpufreq