diff options
author | Anton Ivanov <anton.ivanov@cambridgegreys.com> | 2020-12-07 17:19:38 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-12-30 11:26:04 +0100 |
commit | 4629c75cb1e5476ae84ecd10aea2d5ec09c0695c (patch) | |
tree | a9ad1acbc33d71afa98842aa9bda4fd923a8e643 | |
parent | e5a958130b03c8b39fef88c6e616cd3b481b0671 (diff) | |
download | linux-stable-4629c75cb1e5476ae84ecd10aea2d5ec09c0695c.tar.gz linux-stable-4629c75cb1e5476ae84ecd10aea2d5ec09c0695c.tar.bz2 linux-stable-4629c75cb1e5476ae84ecd10aea2d5ec09c0695c.zip |
um: Monitor error events in IRQ controller
[ Upstream commit e3a01cbee9c5f2c6fc813dd6af007716e60257e7 ]
Ensure that file closes, connection closes, etc are propagated
as interrupts in the interrupt controller.
Fixes: ff6a17989c08 ("Epoll based IRQ controller")
Signed-off-by: Anton Ivanov <anton.ivanov@cambridgegreys.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Sasha Levin <sashal@kernel.org>
-rw-r--r-- | arch/um/os-Linux/irq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/um/os-Linux/irq.c b/arch/um/os-Linux/irq.c index 365823010346..90ef40462280 100644 --- a/arch/um/os-Linux/irq.c +++ b/arch/um/os-Linux/irq.c @@ -48,7 +48,7 @@ int os_epoll_triggered(int index, int events) int os_event_mask(int irq_type) { if (irq_type == IRQ_READ) - return EPOLLIN | EPOLLPRI; + return EPOLLIN | EPOLLPRI | EPOLLERR | EPOLLHUP | EPOLLRDHUP; if (irq_type == IRQ_WRITE) return EPOLLOUT; return 0; |