--- l/drivers/hid/hid-appleir.c +++ y/drivers/hid/hid-appleir.c @@ -150,12 +150,16 @@ static int get_key(int data) static void key_up(struct hid_device *hid, struct appleir *appleir, int key) { + if (!appleir->input_dev) + return; input_report_key(appleir->input_dev, key, 0); input_sync(appleir->input_dev); } static void key_down(struct hid_device *hid, struct appleir *appleir, int key) { + if (!appleir->input_dev) + return; input_report_key(appleir->input_dev, key, 1); input_sync(appleir->input_dev); }