From eb16292ba8a6655a560ab10a7d73a7816f0c0ac0 Mon Sep 17 00:00:00 2001 From: Paul Mackerras Date: Mon, 31 Oct 2005 01:30:32 -0500 Subject: [PATCH] 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: Paul Mackerras Signed-off-by: Dmitry Torokhov --- drivers/macintosh/adbhid.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/macintosh/adbhid.c b/drivers/macintosh/adbhid.c index cdb6d02..8f02c15 100644 --- a/drivers/macintosh/adbhid.c +++ b/drivers/macintosh/adbhid.c @@ -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); + hid->input = input_dev; hid->id = default_id; hid->original_handler_id = original_handler_id; hid->current_handler_id = current_handler_id; -- 2.7.4