Skip to content

Commit

Permalink
Input: uinput - fix returning EPOLLOUT from uinput_poll
Browse files Browse the repository at this point in the history
Always return EPOLLOUT from uinput_poll to allow polling /dev/uinput
for writable state.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Link: https://lore.kernel.org/r/20191204025014.5189-1-marcel@holtmann.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
  • Loading branch information
Marcel Holtmann authored and Dmitry Torokhov committed Dec 5, 2019
1 parent 1e55c17 commit d4b675e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/input/misc/uinput.c
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,7 @@ static __poll_t uinput_poll(struct file *file, poll_table *wait)
if (udev->head != udev->tail)
return EPOLLIN | EPOLLRDNORM;

return 0;
return EPOLLOUT | EPOLLWRNORM;
}

static int uinput_release(struct inode *inode, struct file *file)
Expand Down

0 comments on commit d4b675e

Please sign in to comment.