summaryrefslogtreecommitdiff
path: root/drivers/media/rc
diff options
context:
space:
mode:
authorDavid Härdeman <david@hardeman.nu>2017-05-01 19:04:37 +0300
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-06-06 15:06:06 +0300
commit29debf3d9d214f600af38069e5954699934abe74 (patch)
treecf00e530d1ab173dea53b05d8fc0146b8473e6b9 /drivers/media/rc
parent8e435e572ef9a890512b76b00e42e16f5553ca8f (diff)
downloadlinux-29debf3d9d214f600af38069e5954699934abe74.tar.xz
[media] lirc_dev: return POLLHUP and POLLERR when device is gone
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>
Diffstat (limited to 'drivers/media/rc')
-rw-r--r--drivers/media/rc/lirc_dev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/rc/lirc_dev.c b/drivers/media/rc/lirc_dev.c
index e01b6e635704..786059745f90 100644
--- 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 POLLHUP | POLLERR;
if (ir->buf) {
poll_wait(file, &ir->buf->wait_poll, wait);