diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2019-12-05 02:27:16 +0100 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2019-12-05 02:58:15 +0100 |
commit | d4b675e1b5272149d4c6fac6870df6ebdbd8be82 (patch) | |
tree | ed5d444383c330956cd65fce9ed117889a024fa4 /drivers/input | |
parent | Input: snvs_pwrkey - remove gratuitous NULL initializers (diff) | |
download | linux-d4b675e1b5272149d4c6fac6870df6ebdbd8be82.tar.xz linux-d4b675e1b5272149d4c6fac6870df6ebdbd8be82.zip |
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>
Diffstat (limited to 'drivers/input')
-rw-r--r-- | drivers/input/misc/uinput.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/misc/uinput.c b/drivers/input/misc/uinput.c index 84051f20b18a..fd253781be71 100644 --- a/drivers/input/misc/uinput.c +++ b/drivers/input/misc/uinput.c @@ -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) |