rpms/kernel/F-12 linux-2.6.31-cpufreq-powernow-k8-oops.patch, NONE, 1.1 kernel.spec, 1.1804, 1.1805
Dave Jones
davej at fedoraproject.org
Wed Sep 16 15:33:44 UTC 2009
- Previous message (by thread): rpms/mkdst/devel .cvsignore, 1.9, 1.10 mkdst.spec, 1.14, 1.15 sources, 1.9, 1.10
- Next message (by thread): rpms/kernel/F-11 linux-2.6-virtio_blk-revert-QUEUE_FLAG_VIRT-addition.patch, NONE, 1.1 kernel.spec, 1.1736, 1.1737
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: davej
Update of /cvs/pkgs/rpms/kernel/F-12
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv15819
Modified Files:
kernel.spec
Added Files:
linux-2.6.31-cpufreq-powernow-k8-oops.patch
Log Message:
Fix NULL deref in powernow-k8 driver. (korg #13780)
linux-2.6.31-cpufreq-powernow-k8-oops.patch:
powernow-k8.c | 17 +++++++++--------
1 file changed, 9 insertions(+), 8 deletions(-)
--- NEW FILE linux-2.6.31-cpufreq-powernow-k8-oops.patch ---
--- vanilla-2.6.31/arch/x86/kernel/cpu/cpufreq/powernow-k8.c 2009-09-09 18:13:59.000000000 -0400
+++ linux-2.6.31.noarch/arch/x86/kernel/cpu/cpufreq/powernow-k8.c 2009-09-16 11:27:33.000000000 -0400
@@ -605,9 +605,10 @@ static int check_pst_table(struct powern
return 0;
}
-static void invalidate_entry(struct powernow_k8_data *data, unsigned int entry)
+static void invalidate_entry(struct cpufreq_frequency_table *powernow_table,
+ unsigned int entry)
{
- data->powernow_table[entry].frequency = CPUFREQ_ENTRY_INVALID;
+ powernow_table[entry].frequency = CPUFREQ_ENTRY_INVALID;
}
static void print_basics(struct powernow_k8_data *data)
@@ -914,13 +915,13 @@ static int fill_powernow_table_pstate(st
"bad value %d.\n", i, index);
printk(KERN_ERR PFX "Please report to BIOS "
"manufacturer\n");
- invalidate_entry(data, i);
+ invalidate_entry(powernow_table, i);
continue;
}
rdmsr(MSR_PSTATE_DEF_BASE + index, lo, hi);
if (!(hi & HW_PSTATE_VALID_MASK)) {
dprintk("invalid pstate %d, ignoring\n", index);
- invalidate_entry(data, i);
+ invalidate_entry(powernow_table, i);
continue;
}
@@ -970,7 +971,7 @@ static int fill_powernow_table_fidvid(st
/* verify frequency is OK */
if ((freq > (MAX_FREQ * 1000)) || (freq < (MIN_FREQ * 1000))) {
dprintk("invalid freq %u kHz, ignoring\n", freq);
- invalidate_entry(data, i);
+ invalidate_entry(powernow_table, i);
continue;
}
@@ -978,7 +979,7 @@ static int fill_powernow_table_fidvid(st
* BIOSs are using "off" to indicate invalid */
if (vid == VID_OFF) {
dprintk("invalid vid %u, ignoring\n", vid);
- invalidate_entry(data, i);
+ invalidate_entry(powernow_table, i);
continue;
}
@@ -997,7 +998,7 @@ static int fill_powernow_table_fidvid(st
dprintk("double low frequency table entry, "
"ignoring it.\n");
- invalidate_entry(data, i);
+ invalidate_entry(powernow_table, i);
continue;
} else
cntlofreq = i;
@@ -1009,7 +1010,7 @@ static int fill_powernow_table_fidvid(st
(unsigned int)
(data->acpi_data.states[i].core_frequency
* 1000));
- invalidate_entry(data, i);
+ invalidate_entry(powernow_table, i);
continue;
}
}
Index: kernel.spec
===================================================================
RCS file: /cvs/pkgs/rpms/kernel/F-12/kernel.spec,v
retrieving revision 1.1804
retrieving revision 1.1805
diff -u -p -r1.1804 -r1.1805
--- kernel.spec 16 Sep 2009 12:47:26 -0000 1.1804
+++ kernel.spec 16 Sep 2009 15:33:42 -0000 1.1805
@@ -674,6 +674,8 @@ Patch800: linux-2.6-crash-driver.patch
Patch900: linux-2.6-pci-cacheline-sizing.patch
+Patch1000: linux-2.6.31-cpufreq-powernow-k8-oops.patch
+
Patch1515: lirc-2.6.31.patch
Patch1517: hdpvr-ir-enable.patch
Patch1518: hid-ignore-all-recent-imon-devices.patch
@@ -1319,6 +1321,9 @@ ApplyPatch linux-2.6-crash-driver.patch
# Determine cacheline sizes in a generic manner.
ApplyPatch linux-2.6-pci-cacheline-sizing.patch
+# fix upstream bug #13780
+ApplyPatch linux-2.6.31-cpufreq-powernow-k8-oops.patch
+
# http://www.lirc.org/
ApplyPatch lirc-2.6.31.patch
# enable IR receiver on Hauppauge HD PVR (v4l-dvb merge pending)
@@ -2044,7 +2049,10 @@ fi
# and build.
%changelog
-* Wed Sep 18 2009 Hans de Goede <hdegoede at redhat.com>
+* Wed Sep 16 2009 Dave Jones <davej at redhat.com>
+- Fix NULL deref in powernow-k8 driver. (korg #13780)
+
+* Wed Sep 16 2009 Hans de Goede <hdegoede at redhat.com>
- Fix lockdep warning (and potential real deadlock) in mdraid10 code,
requested for -stable, rh#515471
- Previous message (by thread): rpms/mkdst/devel .cvsignore, 1.9, 1.10 mkdst.spec, 1.14, 1.15 sources, 1.9, 1.10
- Next message (by thread): rpms/kernel/F-11 linux-2.6-virtio_blk-revert-QUEUE_FLAG_VIRT-addition.patch, NONE, 1.1 kernel.spec, 1.1736, 1.1737
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list