From: Dmitry Torokhov Date: Sat, 17 Dec 2005 16:42:54 +0000 (-0500) Subject: [PATCH] Input: fix an OOPS in HID driver X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ff60dde9e46b87757d5e83bd58be0688fca8e816;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.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: Linus Torvalds --- diff --git a/drivers/usb/input/hid-input.c b/drivers/usb/input/hid-input.c index 9ff25eb520a..1220a5004a5 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;