]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Jan 2020 19:05:41 +0000 (20:05 +0100)
commit90a26bdc2f73c1d2a1d764d3d00e75228fc6b48e
tree06d8b9b386c54a1666a27e5e79cf0b80b0ea4d33
parentc54db442f5b2bb3de2cafb49dcc45d029e519cc6
HID: uhid: Fix returning EPOLLOUT from uhid_char_poll

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>
drivers/hid/uhid.c