From: Chris Wright Date: Thu, 22 Dec 2005 04:26:22 +0000 (-0800) Subject: Add Oops fix for input HID simulation events from Dmitry X-Git-Tag: v2.6.14.6~25 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a538494e5e4e80b1d83767b42401ac0422119415;p=thirdparty%2Fkernel%2Fstable-queue.git Add Oops fix for input HID simulation events from Dmitry --- 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 index 00000000000..4da1a379408 --- /dev/null +++ b/queue/input-fix-an-OOPS-in-HID-driver.patch @@ -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 +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 +Acked-by: Vojtech Pavlik +Signed-off-by: Chris Wright +--- + + 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; + diff --git a/queue/series b/queue/series index b6a1025f574..15aec73bc6c 100644 --- a/queue/series +++ b/queue/series @@ -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