mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-12 00:38:55 +00:00
[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>
This commit is contained in:
parent
8e435e572e
commit
29debf3d9d
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user