]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
Add Oops fix for input HID simulation events from Dmitry
authorChris Wright <chrisw@redhat.com>
Thu, 22 Dec 2005 04:26:22 +0000 (20:26 -0800)
committerChris Wright <chrisw@redhat.com>
Thu, 22 Dec 2005 04:26:22 +0000 (20:26 -0800)
queue/input-fix-an-OOPS-in-HID-driver.patch [new file with mode: 0644]
queue/series

diff --git a/queue/input-fix-an-OOPS-in-HID-driver.patch b/queue/input-fix-an-OOPS-in-HID-driver.patch
new file mode 100644 (file)
index 0000000..4da1a37
--- /dev/null
@@ -0,0 +1,30 @@
+From stable-bounces@linux.kernel.org  Wed Dec 21 20:15:40 2005
+Date: Wed, 21 Dec 2005 23:13:17 -0500
+Message-Id: <200512212313.17791.dtor_core@ameritech.net>
+From: Dmitry Torokhov <dtor_core@ameritech.net>
+To: stable@kernel.org
+Subject: [PATCH] Input: fix an OOPS in HID driver
+
+This patch fixes an OOPS in HID driver when connecting simulation
+devices generating unknown simulation events.
+
+Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
+Acked-by: Vojtech Pavlik <vojtech@suse.cz>
+Signed-off-by: Chris Wright <chrisw@redhat.com>
+---
+
+ drivers/usb/input/hid-input.c |    1 +
+ 1 files changed, 1 insertion(+)
+
+Index: linux-2.6.14.y/drivers/usb/input/hid-input.c
+===================================================================
+--- linux-2.6.14.y.orig/drivers/usb/input/hid-input.c
++++ linux-2.6.14.y/drivers/usb/input/hid-input.c
+@@ -137,6 +137,7 @@ static void hidinput_configure_usage(str
+                       switch (usage->hid & 0xffff) {
+                               case 0xba: map_abs(ABS_RUDDER); break;
+                               case 0xbb: map_abs(ABS_THROTTLE); break;
++                              default:   goto ignore;
+                       }
+                       break;
index b6a1025f5742988993f6774b3e142893e83bf4b2..15aec73bc6c24a5e6328a54bf84df5d93908026f 100644 (file)
@@ -12,3 +12,4 @@ rtnetlink-fix-RTNLGRP-definitions-in-rtnetlink.h.patch
 fix-bridge-nf-ipv6-length-check.patch
 ipv6-fix-route-lifetime.patch
 ipsec-perform-SA-switchover-immediately.patch
+input-fix-an-OOPS-in-HID-driver.patch