Merge branch 'for-5.4/hidraw-hiddev-epoll' into for-linus
- proper propagation of EPOLLOUT from hiddev and hidraw, from Fabian Henneke Signed-off-by: Jiri Kosina <jkosina@suse.cz>
This commit is contained in:
commit
98656d503d
|
@ -252,7 +252,7 @@ static __poll_t hidraw_poll(struct file *file, poll_table *wait)
|
||||||
|
|
||||||
poll_wait(file, &list->hidraw->wait, wait);
|
poll_wait(file, &list->hidraw->wait, wait);
|
||||||
if (list->head != list->tail)
|
if (list->head != list->tail)
|
||||||
return EPOLLIN | EPOLLRDNORM;
|
return EPOLLIN | EPOLLRDNORM | EPOLLOUT;
|
||||||
if (!list->hidraw->exist)
|
if (!list->hidraw->exist)
|
||||||
return EPOLLERR | EPOLLHUP;
|
return EPOLLERR | EPOLLHUP;
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -428,7 +428,7 @@ static __poll_t hiddev_poll(struct file *file, poll_table *wait)
|
||||||
|
|
||||||
poll_wait(file, &list->hiddev->wait, wait);
|
poll_wait(file, &list->hiddev->wait, wait);
|
||||||
if (list->head != list->tail)
|
if (list->head != list->tail)
|
||||||
return EPOLLIN | EPOLLRDNORM;
|
return EPOLLIN | EPOLLRDNORM | EPOLLOUT;
|
||||||
if (!list->hiddev->exist)
|
if (!list->hiddev->exist)
|
||||||
return EPOLLERR | EPOLLHUP;
|
return EPOLLERR | EPOLLHUP;
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue