[kernel] r15459 - in dists/sid/linux-2.6/debian: . patches/bugfix/all patches/series
Maximilian Attems
maks at alioth.debian.org
Tue Mar 30 21:56:58 UTC 2010
Author: maks
Date: Tue Mar 30 21:56:54 2010
New Revision: 15459
Log:
add ssb followup fixlet found in F-12 tree
Added:
dists/sid/linux-2.6/debian/patches/bugfix/all/ssb_check_for_sprom-fix.patch
Modified:
dists/sid/linux-2.6/debian/changelog
dists/sid/linux-2.6/debian/patches/series/11
Modified: dists/sid/linux-2.6/debian/changelog
==============================================================================
--- dists/sid/linux-2.6/debian/changelog Tue Mar 30 03:07:57 2010 (r15458)
+++ dists/sid/linux-2.6/debian/changelog Tue Mar 30 21:56:54 2010 (r15459)
@@ -22,6 +22,7 @@
* Update openvz patch to 796e80e5b2ed. (closes: #574598, #575189)
* [x86]: Disable FB_INTEL. (closes: #447575, #503766, #574401)
* ssb: do not read SPROM if it does not exist.
+ * ssb: Avoid null pointer dereference by aboves.
[ Bastian Blank ]
* Update Xen patch.
Added: dists/sid/linux-2.6/debian/patches/bugfix/all/ssb_check_for_sprom-fix.patch
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ dists/sid/linux-2.6/debian/patches/bugfix/all/ssb_check_for_sprom-fix.patch Tue Mar 30 21:56:54 2010 (r15459)
@@ -0,0 +1,30 @@
+From ec032742062ad1b01dfe75cfccdbc5b850837c23 Mon Sep 17 00:00:00 2001
+From: John W. Linville <linville at tuxdriver.com>
+Date: Tue, 30 Mar 2010 13:47:39 -0400
+Subject: [PATCH] ssb: avoid null ptr deref in ssb_is_sprom_available
+
+Some older devices don't have chipcommon, but they do have SPROM.
+
+Signed-off-by: John W. Linville <linville at tuxdriver.com>
+---
+ drivers/ssb/sprom.c | 4 ++++
+ 1 files changed, 4 insertions(+), 0 deletions(-)
+
+diff --git a/drivers/ssb/sprom.c b/drivers/ssb/sprom.c
+index 55eb9b0..874d8f1 100644
+--- a/drivers/ssb/sprom.c
++++ b/drivers/ssb/sprom.c
+@@ -178,6 +178,10 @@ const struct ssb_sprom *ssb_get_fallback_sprom(void)
+
+ bool ssb_is_sprom_available(struct ssb_bus *bus)
+ {
++ /* some older devices don't have chipcommon, but they have sprom */
++ if (!bus->chipco.dev)
++ return true;
++
+ /* status register only exists on chipcomon rev >= 11 */
+ if (bus->chipco.dev->id.revision < 11)
+ return true;
+--
+1.6.2.5
+
Modified: dists/sid/linux-2.6/debian/patches/series/11
==============================================================================
--- dists/sid/linux-2.6/debian/patches/series/11 Tue Mar 30 03:07:57 2010 (r15458)
+++ dists/sid/linux-2.6/debian/patches/series/11 Tue Mar 30 21:56:54 2010 (r15459)
@@ -10,3 +10,4 @@
+ features/all/nouveau-nv50-Implement-ctxprog-state-generation.patch
+ bugfix/all/nouveau-nv50-Make-ctxprog-wait-for-interrupt-handler.patch
+ bugfix/all/nouveau-nv50-Fix-NEWCTX_DONE-flag-number.patch
++ bugfix/all/ssb_check_for_sprom-fix.patch
More information about the Kernel-svn-changes
mailing list