* [PATCH] uio: fsl_elbc_gpcm: preserve platform_get_irq() errors
@ 2026-09-04 1:25 Diego Fernando Mancera Gomez
0 siblings, 0 replies; only message in thread
From: Diego Fernando Mancera Gomez @ 2026-09-04 1:25 UTC (permalink / raw)
To: gregkh; +Cc: linux-kernel, lkp
In uio_fsl_elbc_gpcm_probe(), platform_get_irq() returns a negative errno
on failure. Because irq is declared as unsigned int, the error check
if (irq < 0) is never satisfied and negative error codes (such as
-EPROBE_DEFER) bypass the error handling.
Change the local irq declaration from unsigned int to int so negative
errors from platform_get_irq() reach the error check and are properly
returned.
Fixes: c8295feb756f ("uio: fsl_elbc_gpcm: use platform helpers for resource and IRQ")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/r/202608011915.yZ4ITuSe-lkp@intel.com/
Signed-off-by: Diego Fernando Mancera Gomez <diegomancera.dev@gmail.com>
---
drivers/uio/uio_fsl_elbc_gpcm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/uio/uio_fsl_elbc_gpcm.c b/drivers/uio/uio_fsl_elbc_gpcm.c
index 08cb150fb12f..e6394dd14e43 100644
--- a/drivers/uio/uio_fsl_elbc_gpcm.c
+++ b/drivers/uio/uio_fsl_elbc_gpcm.c
@@ -303,7 +303,7 @@ static int uio_fsl_elbc_gpcm_probe(struct platform_device *pdev)
char *uio_name = NULL;
struct resource *res;
void __iomem *base;
- unsigned int irq;
+ int irq;
u32 reg_br_cur;
u32 reg_or_cur;
u32 reg_br_new;
--
2.55.0
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-04 1:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-04 1:25 [PATCH] uio: fsl_elbc_gpcm: preserve platform_get_irq() errors Diego Fernando Mancera Gomez
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®