diff options
author | 2020-10-05 15:02:17 +0100 | |
---|---|---|
committer | 2020-10-07 11:47:41 +0200 | |
commit | 8b81edd80baf12d64420daff1759380aa9a14998 (patch) | |
tree | 9d168af1a0db163e24a5f79afd4c88f172dc1831 /drivers/usb/cdns3/cdns3-debug.h | |
parent | gpiolib: Disable compat ->read() code in UML case (diff) | |
download | wireguard-linux-8b81edd80baf12d64420daff1759380aa9a14998.tar.xz wireguard-linux-8b81edd80baf12d64420daff1759380aa9a14998.zip |
gpio: pca953x: Survive spurious interrupts
The pca953x driver never checks the result of irq_find_mapping(),
which returns 0 when no mapping is found. When a spurious interrupt
is delivered (which can happen under obscure circumstances), the
kernel explodes as it still tries to handle the error code as
a real interrupt.
Handle this particular case and warn on spurious interrupts.
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20201005140217.1390851-1-maz@kernel.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions