]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
spi: hisi-sfc-v3xx: Return IRQ_NONE if no interrupts were detected
authorDevyn Liu <liudingyuan@huawei.com>
Tue, 23 Jan 2024 07:11:49 +0000 (15:11 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 1 Mar 2024 12:34:49 +0000 (13:34 +0100)
commitd637b5118274701e8448f35953877daf04df18b4
treedec578e37c89d70e6d4000bea12a3d01c89e749c
parent8298ea0f51a987642c25fae2a8edc61c82382c8d
spi: hisi-sfc-v3xx: Return IRQ_NONE if no interrupts were detected

[ Upstream commit de8b6e1c231a95abf95ad097b993d34b31458ec9 ]

Return IRQ_NONE from the interrupt handler when no interrupt was
detected. Because an empty interrupt will cause a null pointer error:

    Unable to handle kernel NULL pointer dereference at virtual
  address 0000000000000008
    Call trace:
        complete+0x54/0x100
        hisi_sfc_v3xx_isr+0x2c/0x40 [spi_hisi_sfc_v3xx]
        __handle_irq_event_percpu+0x64/0x1e0
        handle_irq_event+0x7c/0x1cc

Signed-off-by: Devyn Liu <liudingyuan@huawei.com>
Link: https://msgid.link/r/20240123071149.917678-1-liudingyuan@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/spi/spi-hisi-sfc-v3xx.c