]> git.baikalelectronics.ru Git - kernel.git/commit
Input: uinput - always report EPOLLOUT
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 13 Dec 2019 22:03:56 +0000 (14:03 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 13 Dec 2019 23:00:30 +0000 (15:00 -0800)
commit0dbcafe32309f14005f2b5cd4e0b9bea8fb25222
treedf26e5a16db63fb29f8d6f2d003628bcb8a667ba
parent9b32977a5a3d81affe237c3311ff87c7625ec128
Input: uinput - always report EPOLLOUT

uinput device is always available for writing so we should always report
EPOLLOUT and EPOLLWRNORM bits, not only when there is nothing to read from
the device.

Fixes: 92a7f6d13402 ("Input: uinput - fix returning EPOLLOUT from uinput_poll")
Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
Link: https://lore.kernel.org/r/20191209202254.GA107567@dtor-ws
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/misc/uinput.c