]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
irqchip/jcore-aic: Fix missing allocation of IRQ descriptors
authorJohn Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Wed, 10 May 2023 16:33:42 +0000 (18:33 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jul 2023 06:37:05 +0000 (08:37 +0200)
commit7b0c664541cd5e7d3cdc6c4d3ad5179cf5ea7bba
treed2b94e8d135d07d310d067cab3262206d842bf8c
parentd244927e350eab5adb4f8bb1a2c130c3791cc70a
irqchip/jcore-aic: Fix missing allocation of IRQ descriptors

[ Upstream commit 4848229494a323eeaab62eee5574ef9f7de80374 ]

The initialization function for the J-Core AIC aic_irq_of_init() is
currently missing the call to irq_alloc_descs() which allocates and
initializes all the IRQ descriptors. Add missing function call and
return the error code from irq_alloc_descs() in case the allocation
fails.

Fixes: 981b58f66cfc ("irqchip/jcore-aic: Add J-Core AIC driver")
Signed-off-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Tested-by: Rob Landley <rob@landley.net>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20230510163343.43090-1-glaubitz@physik.fu-berlin.de
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/irqchip/irq-jcore-aic.c