/[linux-patches]/genpatches-2.6/trunk/2.6.14/1171_5_hid-input-oops.patch
Gentoo

Contents of /genpatches-2.6/trunk/2.6.14/1171_5_hid-input-oops.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 292 - (show annotations) (download) (as text)
Tue Jan 31 21:50:53 2006 UTC (14 years, 9 months ago) by johnm
File MIME type: text/x-diff
File size: 934 byte(s)
Large update - thanks goes to Kerin Millar for the legwork.
1 From: Dmitry Torokhov <dtor_core@ameritech.net>
2 Date: Thu, 22 Dec 2005 04:13:17 +0000 (-0500)
3 Subject: [PATCH] Input: fix an OOPS in HID driver
4 X-Git-Url: http://kernel.org/git/?p=linux/kernel/git/gregkh/linux-2.6.14.y.git;a=commitdiff;h=dcf588a64b8c1ba57d2430363a6d0050e8d18072
5
6 [PATCH] Input: fix an OOPS in HID driver
7
8 This patch fixes an OOPS in HID driver when connecting simulation
9 devices generating unknown simulation events.
10
11 Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
12 Acked-by: Vojtech Pavlik <vojtech@suse.cz>
13 Signed-off-by: Chris Wright <chrisw@redhat.com>
14 Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 ---
16
17 --- a/drivers/usb/input/hid-input.c
18 +++ b/drivers/usb/input/hid-input.c
19 @@ -137,6 +137,7 @@ static void hidinput_configure_usage(str
20 switch (usage->hid & 0xffff) {
21 case 0xba: map_abs(ABS_RUDDER); break;
22 case 0xbb: map_abs(ABS_THROTTLE); break;
23 + default: goto ignore;
24 }
25 break;
26

  ViewVC Help
Powered by ViewVC 1.1.20