]> git.baikalelectronics.ru Git - kernel.git/commit
HID: hidraw, uhid: Always report EPOLLOUT
authorJiri Kosina <jkosina@suse.cz>
Fri, 10 Jan 2020 14:32:51 +0000 (15:32 +0100)
committerJiri Kosina <jkosina@suse.cz>
Fri, 10 Jan 2020 14:34:28 +0000 (15:34 +0100)
commit27c3e439662322c6cd5aecde4c02931a4f6453b0
tree4cc71cf81d6d97b69aed593a09257e723a7fa00c
parent9e22ffd9c216de8f0e10c1d83b17d27dbfe14306
HID: hidraw, uhid: Always report EPOLLOUT

hidraw and uhid device nodes are always available for writing so we should
always report EPOLLOUT and EPOLLWRNORM bits, not only in the cases when
there is nothing to read.

Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
Fixes: 1631cdbcb8ecb ("HID: uhid: Fix returning EPOLLOUT from uhid_char_poll")
Fixes: 268c0bfadb970 ("HID: hidraw: Fix returning EPOLLOUT from hidraw_poll")
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hidraw.c
drivers/hid/uhid.c