Commit 34a39d46 authored by Vojtech Pavlik's avatar Vojtech Pavlik

input: Return 0 from uinput poll if device isn't yet created.

Signed-off-by: default avatarVojtech Pavlik <vojtech@suse.cz>
parent 7d2a5db9
......@@ -280,7 +280,7 @@ 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;
return 0;
poll_wait(file, &udev->waitq, wait);
......
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