Skip to content

Commit d4b675e

Browse files
holtmanndtor
authored andcommitted
Input: uinput - fix returning EPOLLOUT from uinput_poll
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>
1 parent 1e55c17 commit d4b675e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/input/misc/uinput.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,7 @@ static __poll_t uinput_poll(struct file *file, poll_table *wait)
695695
if (udev->head != udev->tail)
696696
return EPOLLIN | EPOLLRDNORM;
697697

698-
return 0;
698+
return EPOLLOUT | EPOLLWRNORM;
699699
}
700700

701701
static int uinput_release(struct inode *inode, struct file *file)

0 commit comments

Comments
 (0)