mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-30 22:03:17 +01:00
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]>
This commit is contained in:
1 parent
1e55c176f8
commit
d4b675e1b5
1 file changed
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user