Skip to content

Commit be54e74

Browse files
holtmannJiri Kosina
authored andcommitted
HID: uhid: Fix returning EPOLLOUT from uhid_char_poll
Always return EPOLLOUT from uhid_char_poll to allow polling /dev/uhid for writable state. Fixes: 1f9dec1 ("HID: uhid: allow poll()'ing on uhid devices") Signed-off-by: Marcel Holtmann <[email protected]> Cc: [email protected] Signed-off-by: Jiri Kosina <[email protected]>
1 parent 9f3b61d commit be54e74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/hid/uhid.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,7 @@ static __poll_t uhid_char_poll(struct file *file, poll_table *wait)
772772
if (uhid->head != uhid->tail)
773773
return EPOLLIN | EPOLLRDNORM;
774774

775-
return 0;
775+
return EPOLLOUT | EPOLLWRNORM;
776776
}
777777

778778
static const struct file_operations uhid_fops = {

0 commit comments

Comments
 (0)