Input: uinput - Fix returning EPOLLOUT from uinput_poll
Subsystems (2)
PATCH 1/1 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]>
--- drivers/input/misc/uinput.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/input/misc/uinput.c +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)
Signature · 1 line
2.23.0
Quoted 5 lines · Marcel Holtmann
Always return EPOLLOUT from
uinput_pollto allow polling/dev/uinputfor writable state.Signed-off-by Marcel Holtmann <[email protected]>
Applied, thank you.
Quoted 20 lines
--- drivers/input/misc/uinput.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/input/misc/uinput.c +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)Signature · 1 line
2.23.0
Signature · 1 line
Dmitry