]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
3.0-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Dec 2012 22:17:17 +0000 (14:17 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Dec 2012 22:17:17 +0000 (14:17 -0800)
added patches:
pnpacpi-fix-incorrect-test_alpha-test.patch

queue-3.0/pnpacpi-fix-incorrect-test_alpha-test.patch [new file with mode: 0644]
queue-3.0/series

diff --git a/queue-3.0/pnpacpi-fix-incorrect-test_alpha-test.patch b/queue-3.0/pnpacpi-fix-incorrect-test_alpha-test.patch
new file mode 100644 (file)
index 0000000..adc21f0
--- /dev/null
@@ -0,0 +1,32 @@
+From cdc87c5a30f407ed1ce43d8a22261116873d5ef1 Mon Sep 17 00:00:00 2001
+From: Alan Cox <alan@lxorguk.ukuu.org.uk>
+Date: Fri, 7 Dec 2012 23:11:14 +0100
+Subject: pnpacpi: fix incorrect TEST_ALPHA() test
+
+From: Alan Cox <alan@lxorguk.ukuu.org.uk>
+
+commit cdc87c5a30f407ed1ce43d8a22261116873d5ef1 upstream.
+
+TEST_ALPHA() is broken and always returns 0.
+
+[akpm@linux-foundation.org: return false for '@' as well, per Bjorn]
+Signed-off-by: Alan Cox <alan@lxorguk.ukuu.org.uk>
+Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
+Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ drivers/pnp/pnpacpi/core.c |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/drivers/pnp/pnpacpi/core.c
++++ b/drivers/pnp/pnpacpi/core.c
+@@ -57,7 +57,7 @@ static inline int __init is_exclusive_de
+       if (!(('0' <= (c) && (c) <= '9') || ('A' <= (c) && (c) <= 'F'))) \
+               return 0
+ #define TEST_ALPHA(c) \
+-      if (!('@' <= (c) || (c) <= 'Z')) \
++      if (!('A' <= (c) && (c) <= 'Z')) \
+               return 0
+ static int __init ispnpidacpi(const char *id)
+ {
index b7108e6a9b98674c609a5ce8ca0263a1295fc5e4..f14a08f6937d452a2c43f970603ebf9a3abfc174 100644 (file)
@@ -5,3 +5,4 @@ sctp-fix-enomem-result-with-invalid-user-space-pointer-in-sendto-syscall.patch
 ne2000-add-the-right-platform-device.patch
 irda-sir_dev-fix-copy-paste-typo.patch
 usb-ipheth-add-iphone-5-support.patch
+pnpacpi-fix-incorrect-test_alpha-test.patch