Commit fef3dcc0 authored by Vojtech Pavlik's avatar Vojtech Pavlik

Fix a hang in serio code and a possible oops in input.

parent 72645c3d
......@@ -37,6 +37,8 @@ MODULE_AUTHOR("Vojtech Pavlik <vojtech@ucw.cz>");
MODULE_DESCRIPTION("Input driver event debug module");
MODULE_LICENSE("GPL");
static char evbug_name[] = "evbug";
static void evbug_event(struct input_handle *handle, unsigned int type, unsigned int code, int value)
{
printk(KERN_DEBUG "evbug.c: Event. Dev: %s, Type: %d, Code: %d, Value: %d\n", handle->dev->phys, type, code, value);
......@@ -52,6 +54,7 @@ static struct input_handle *evbug_connect(struct input_handler *handler, struct
handle->dev = dev;
handle->handler = handler;
handle->name = evbug_name;
input_open_device(handle);
......
......@@ -82,6 +82,7 @@ void serio_handle_events(void)
}
serio->event = 0;
serio = serio->next;
}
}
......@@ -95,7 +96,7 @@ static int serio_thread(void *nothing)
serio_handle_events();
if (current->flags & PF_FREEZE)
refrigerator(PF_IOTHREAD);
wait_event_interruptible(serio_wait, 1);
interruptible_sleep_on(&serio_wait);
} while (!signal_pending(current));
printk(KERN_DEBUG "serio: kseriod exiting");
......
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