[PATCH] bus: omap_l3_noc: Check IRQ lookup results

From: Alex Guo

Date: Sat Nov 14 2026 - 09:23:07 EST


omap_l3_probe() passes the results of platform_get_irq() to
devm_request_irq() without checking for errors. When the interrupt
controller is not ready, the lookup can return -EPROBE_DEFER, but
the IRQ request can turn it into -EINVAL and prevent a probe retry.

Check both IRQ lookup results and return the original error.

A similar issue was fixed in commit 47c3e06ed95a
("spi: tegra210-quad: Fix missin IRQ check in tegra_qspi_probe").

Fixes: 2722e56de603 ("OMAP4: l3: Introduce l3-interconnect error
handling driver")
Signed-off-by: Alex Guo <alexguo1023@xxxxxxxxx>
---
Build-tested the affected driver object with Clang 18 for ARM
(multi_v7_defconfig). No hardware test was performed.

drivers/bus/omap_l3_noc.c | 6 ++++++
1 file changed, 6 insertions(+)

diff --git a/drivers/bus/omap_l3_noc.c b/drivers/bus/omap_l3_noc.c
index 56794c67d865..0e445b36a647 100644
--- a/drivers/bus/omap_l3_noc.c
+++ b/drivers/bus/omap_l3_noc.c
@@ -276,6 +276,9 @@ static int omap_l3_probe(struct platform_device *pdev)
* Setup interrupt Handlers
*/
l3->debug_irq = platform_get_irq(pdev, 0);
+ if (l3->debug_irq < 0)
+ return l3->debug_irq;
+
ret = devm_request_irq(l3->dev, l3->debug_irq, l3_interrupt_handler,
IRQF_NO_THREAD, "l3-dbg-irq", l3);
if (ret) {
@@ -285,6 +288,9 @@ static int omap_l3_probe(struct platform_device *pdev)
}

l3->app_irq = platform_get_irq(pdev, 1);
+ if (l3->app_irq < 0)
+ return l3->app_irq;
+
ret = devm_request_irq(l3->dev, l3->app_irq, l3_interrupt_handler,
IRQF_NO_THREAD, "l3-app-irq", l3);
if (ret)
--
2.43.0