提交 ff60dde9 编写于 作者: D Dmitry Torokhov 提交者: Linus Torvalds

[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: NDmitry Torokhov <dtor@mail.ru>
Acked-by: NVojtech Pavlik <vojtech@suse.cz>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 5b7b15af
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册