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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent 1e55c17 commit d4b675e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)