From: Greg Kroah-Hartman Date: Mon, 6 Dec 2010 20:59:04 +0000 (-0800) Subject: .32 patches X-Git-Tag: v2.6.27.57~42 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e2b05e6df5125961b127b0fd545b6c044883b733;p=thirdparty%2Fkernel%2Fstable-queue.git .32 patches --- diff --git a/queue-2.6.32/efifb-check-that-the-base-address-is-plausible-on-pci-systems.patch b/queue-2.6.32/efifb-check-that-the-base-address-is-plausible-on-pci-systems.patch new file mode 100644 index 00000000000..82a172e50a5 --- /dev/null +++ b/queue-2.6.32/efifb-check-that-the-base-address-is-plausible-on-pci-systems.patch @@ -0,0 +1,141 @@ +From 85a00d9bbfb4704fbf368944b1cb9fed8f1598c5 Mon Sep 17 00:00:00 2001 +From: Peter Jones +Date: Wed, 22 Sep 2010 13:05:04 -0700 +Subject: efifb: check that the base address is plausible on pci systems + +From: Peter Jones + +commit 85a00d9bbfb4704fbf368944b1cb9fed8f1598c5 upstream. + +Some Apple machines have identical DMI data but different memory +configurations for the video. Given that, check that the address in our +table is actually within the range of a PCI BAR on a VGA device in the +machine. + +This also fixes up the return value from set_system(), which has always +been wrong, but never resulted in bad behavior since there's only ever +been one matching entry in the dmi table. + +The patch + +1) stops people's machines from crashing when we get their display wrong, + which seems to be unfortunately inevitable, + +2) allows us to support identical dmi data with differing video memory + configurations + +This also adds me as the efifb maintainer, since I've effectively been +acting as such for quite some time. + +Signed-off-by: Peter Jones +Signed-off-by: Andrew Morton +Signed-off-by: Linus Torvalds +Cc: maximilian attems +Signed-off-by: Greg Kroah-Hartman + +--- + MAINTAINERS | 6 ++++ + drivers/video/efifb.c | 61 ++++++++++++++++++++++++++++++++++++++++---------- + 2 files changed, 55 insertions(+), 12 deletions(-) + +--- a/MAINTAINERS ++++ b/MAINTAINERS +@@ -1974,6 +1974,12 @@ W: http://acpi4asus.sf.net + S: Maintained + F: drivers/platform/x86/eeepc-laptop.c + ++EFIFB FRAMEBUFFER DRIVER ++L: linux-fbdev@vger.kernel.org ++M: Peter Jones ++S: Maintained ++F: drivers/video/efifb.c ++ + EFS FILESYSTEM + W: http://aeschi.ch.eu.org/efs/ + S: Orphan +--- a/drivers/video/efifb.c ++++ b/drivers/video/efifb.c +@@ -13,7 +13,7 @@ + #include + #include + #include +- ++#include + #include