]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerKhalid Elmously <khalid.elmously@canonical.com>
Fri, 14 Feb 2020 05:29:37 +0000 (00:29 -0500)
commita98b605d081da3e6048b8a1d39b57d51b9a2a410
tree98f6ca318fcb79483e08440f8a19a76bbae678e4
parent8fe245bc1ca8cfbd2c545696d2be33f8f53e68f1
HID: hidraw, uhid: Always report EPOLLOUT

BugLink: https://bugs.launchpad.net/bugs/1861934
[ Upstream commit 9e635c2851df6caee651e589fbf937b637973c91 ]

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: be54e7461ffdc ("HID: uhid: Fix returning EPOLLOUT from uhid_char_poll")
Fixes: 9f3b61dc1dd7b ("HID: hidraw: Fix returning EPOLLOUT from hidraw_poll")
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/hid/hidraw.c
drivers/hid/uhid.c