]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
HID: uhid: Fix returning EPOLLOUT from uhid_char_poll
authorMarcel Holtmann <marcel@holtmann.org>
Wed, 4 Dec 2019 02:43:55 +0000 (03:43 +0100)
committerPaolo Pisati <paolo.pisati@canonical.com>
Thu, 30 Jan 2020 15:23:36 +0000 (16:23 +0100)
commit39297eb65c799af519c56221151544a1a1b95603
tree902db1a727e34eeac48e7ce9ef536d919acc0b4e
parent422143058dd1b54c160609c7e66da163026a7e70
HID: uhid: Fix returning EPOLLOUT from uhid_char_poll

BugLink: https://bugs.launchpad.net/bugs/1860131
commit be54e7461ffdc5809b67d2aeefc1ddc9a91470c7 upstream.

Always return EPOLLOUT from uhid_char_poll to allow polling /dev/uhid
for writable state.

Fixes: 1f9dec1e0164 ("HID: uhid: allow poll()'ing on uhid devices")
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Cc: stable@vger.kernel.org
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/hid/uhid.c