Commit eb16292b authored by Paul Mackerras's avatar Paul Mackerras Committed by Dmitry Torokhov

Input: adbhid - fix OOPS introduced by dynalloc conversion

The problem is that adbhid[]->input is NULL, so the kernel oopses with
a null pointer dereference as soon as a key is pressed.
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent 76440d5e
...@@ -723,6 +723,7 @@ adbhid_input_register(int id, int default_id, int original_handler_id, ...@@ -723,6 +723,7 @@ adbhid_input_register(int id, int default_id, int original_handler_id,
sprintf(hid->phys, "adb%d:%d.%02x/input", id, default_id, original_handler_id); sprintf(hid->phys, "adb%d:%d.%02x/input", id, default_id, original_handler_id);
hid->input = input_dev;
hid->id = default_id; hid->id = default_id;
hid->original_handler_id = original_handler_id; hid->original_handler_id = original_handler_id;
hid->current_handler_id = current_handler_id; hid->current_handler_id = current_handler_id;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment