OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b7b15a
)
[PATCH] Input: fix an OOPS in HID driver
author
Dmitry Torokhov
<dtor_core@ameritech.net>
Sat, 17 Dec 2005 16:42:54 +0000
(11:42 -0500)
committer
Linus Torvalds
<torvalds@g5.osdl.org>
Sun, 18 Dec 2005 19:22:30 +0000
(11:22 -0800)
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: Linus Torvalds <torvalds@osdl.org>
drivers/usb/input/hid-input.c
patch
|
blob
|
history
diff --git
a/drivers/usb/input/hid-input.c
b/drivers/usb/input/hid-input.c
index
9ff25eb
..
1220a50
100644
(file)
--- a/
drivers/usb/input/hid-input.c
+++ b/
drivers/usb/input/hid-input.c
@@
-137,6
+137,7
@@
static void hidinput_configure_usage(struct hid_input *hidinput, struct hid_fiel
switch (usage->hid & 0xffff) {
case 0xba: map_abs(ABS_RUDDER); break;
case 0xbb: map_abs(ABS_THROTTLE); break;
+ default: goto ignore;
}
break;