rpms/kernel/F-8 linux-2.6-acpi-processor-use-signed-int.patch, NONE, 1.1 kernel.spec, 1.512, 1.513

Chuck Ebbert (cebbert) fedora-extras-commits at redhat.com
Tue Aug 12 22:48:54 UTC 2008


Author: cebbert

Update of /cvs/pkgs/rpms/kernel/F-8
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv23233

Modified Files:
	kernel.spec 
Added Files:
	linux-2.6-acpi-processor-use-signed-int.patch 
Log Message:
Fix obvious bug in ACPI processor driver

linux-2.6-acpi-processor-use-signed-int.patch:

--- NEW FILE linux-2.6-acpi-processor-use-signed-int.patch ---

Do not use unsigned int if there is test for negative number...

See drivers/acpi/processor_perflib.c
  static unsigned int ignore_ppc = -1;
...
  if (event == CPUFREQ_START && ignore_ppc <= 0) {
       ignore_ppc = 0;
...
Signed-off-by: Milan Broz <mbroz at redhat.com>
---
===================================================================
--- linux-2.6.26.y.orig/drivers/acpi/processor_perflib.c	2008-08-12 17:20:07.000000000 +0200
+++ linux-2.6.26.y/drivers/acpi/processor_perflib.c	2008-08-12 17:35:53.000000000 +0200
@@ -70,7 +70,7 @@ static DEFINE_MUTEX(performance_mutex);
  *  0 -> cpufreq low level drivers initialized -> consider _PPC values
  *  1 -> ignore _PPC totally -> forced by user through boot param
  */
-static unsigned int ignore_ppc = -1;
+static int ignore_ppc = -1;
 module_param(ignore_ppc, uint, 0644);
 MODULE_PARM_DESC(ignore_ppc, "If the frequency of your machine gets wrongly" \
 		 "limited by BIOS, this should help");



Index: kernel.spec
===================================================================
RCS file: /cvs/pkgs/rpms/kernel/F-8/kernel.spec,v
retrieving revision 1.512
retrieving revision 1.513
diff -u -r1.512 -r1.513
--- kernel.spec	9 Aug 2008 07:07:04 -0000	1.512
+++ kernel.spec	12 Aug 2008 22:48:24 -0000	1.513
@@ -645,6 +645,7 @@
 Patch727: linux-2.6-e1000-ich9.patch
 
 #ACPI
+Patch800: linux-2.6-acpi-processor-use-signed-int.patch
 
 Patch1101: linux-2.6-default-mmf_dump_elf_headers.patch
 
@@ -1138,6 +1139,8 @@
 ApplyPatch linux-2.6-netdev-atl1e.patch
 
 # ACPI/PM patches
+# fix obvious thinko
+ApplyPatch linux-2.6-acpi-processor-use-signed-int.patch
 
 # dm / md
 
@@ -1761,6 +1764,9 @@
 
 
 %changelog
+* Tue Aug 12 2008 Chuck Ebbert <cebbert at redhat.com> 2.6.26.2-3
+- Fix obvious bug in ACPI processor driver.
+
 * Sat Aug 09 2008 Dave Airlie <airlied at redhat.com>
 - make nouveau drm apply again
 




More information about the fedora-extras-commits mailing list