projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e435e5
)
[media] lirc_dev: return POLLHUP and POLLERR when device is gone
author
David Härdeman
<david@hardeman.nu>
Mon, 1 May 2017 16:04:37 +0000
(13:04 -0300)
committer
Mauro Carvalho Chehab
<mchehab@s-opensource.com>
Tue, 6 Jun 2017 12:06:06 +0000
(09:06 -0300)
Most drivers return both values when the device is gone.
Signed-off-by: David Härdeman <david@hardeman.nu>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/rc/lirc_dev.c
patch
|
blob
|
history
diff --git
a/drivers/media/rc/lirc_dev.c
b/drivers/media/rc/lirc_dev.c
index
e01b6e6
..
7860597
100644
(file)
--- a/
drivers/media/rc/lirc_dev.c
+++ b/
drivers/media/rc/lirc_dev.c
@@
-372,7
+372,7
@@
unsigned int lirc_dev_fop_poll(struct file *file, poll_table *wait)
}
if (!ir->attached)
- return POLLERR;
+ return POLL
HUP | POLL
ERR;
if (ir->buf) {
poll_wait(file, &ir->buf->wait_poll, wait);