Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ff60dde9 authored by Dmitry Torokhov's avatar Dmitry Torokhov Committed by Linus Torvalds
Browse files

[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: default avatarDmitry Torokhov <dtor@mail.ru>
Acked-by: default avatarVojtech Pavlik <vojtech@suse.cz>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 5b7b15af
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;