linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Input: fix an OOPS in HID driver
@ 2005-12-17  2:31 Dmitry Torokhov
  2005-12-17 10:22 ` Vojtech Pavlik
  0 siblings, 1 reply; 6+ messages in thread
From: Dmitry Torokhov @ 2005-12-17  2:31 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: LKML, Andrew Morton, Vojtech Pavlik

Subject: 

This patch fixes an OOPS in HID driver when connecting simulation
devices generating unknown simulation events.

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
---

 drivers/usb/input/hid-input.c |    1 +
 1 files changed, 1 insertion(+)

Index: work/drivers/usb/input/hid-input.c
===================================================================
--- work.orig/drivers/usb/input/hid-input.c
+++ work/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 unknown;
 			}
 			break;
 

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-12-22  4:08 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-17  2:31 [PATCH] Input: fix an OOPS in HID driver Dmitry Torokhov
2005-12-17 10:22 ` Vojtech Pavlik
2005-12-17 16:40   ` Dmitry Torokhov
2005-12-17 16:42     ` Dmitry Torokhov
2005-12-22  0:15       ` Adrian Bunk
2005-12-22  4:08         ` Dmitry Torokhov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).