diff options
author | David Härdeman <david@hardeman.nu> | 2017-05-01 18:04:37 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-06-06 14:06:06 +0200 |
commit | 29debf3d9d214f600af38069e5954699934abe74 (patch) | |
tree | cf00e530d1ab173dea53b05d8fc0146b8473e6b9 /drivers/media/rc | |
parent | [media] lirc_dev: remove unused module parameter (diff) | |
download | linux-29debf3d9d214f600af38069e5954699934abe74.tar.xz linux-29debf3d9d214f600af38069e5954699934abe74.zip |
[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.c | 2 |
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); |