From: Dmitry Torokhov Date: Thu, 22 Dec 2005 04:13:17 +0000 (-0500) Subject: [PATCH] Input: fix an OOPS in HID driver X-Git-Tag: v2.6.14.5~5 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=dcf588a64b8c1ba57d2430363a6d0050e8d18072;p=karo-tx-linux.git [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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/input/hid-input.c b/drivers/usb/input/hid-input.c index 0b6452248a39..f72d705f0be7 100644 --- 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;