Commit bd5c02e5 authored by Vojtech Pavlik's avatar Vojtech Pavlik

input: Fix an oops in poll() on uinput. Thanks to Dmitry Torokhov

       for suggesting the fix.
parent 906f8f6a
......@@ -279,6 +279,9 @@ static unsigned int uinput_poll(struct file *file, poll_table *wait)
{
struct uinput_device *udev = file->private_data;
if (!test_bit(UIST_CREATED, &(udev->state)))
return -ENODEV;
poll_wait(file, &udev->waitq, wait);
if (udev->head != udev->tail)
......
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