Patch "soc: fsl: cpm1: qmc: Set the ret error code on platform_get_irq() failure" has been added to the 6.6-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    soc: fsl: cpm1: qmc: Set the ret error code on platform_get_irq() failure

to the 6.6-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     soc-fsl-cpm1-qmc-set-the-ret-error-code-on-platform_.patch
and it can be found in the queue-6.6 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 36ba7e5a0bbdd15fe5778e1b1b4ddd555930e0f7
Author: Herve Codina <herve.codina@xxxxxxxxxxx>
Date:   Tue Nov 5 15:56:23 2024 +0100

    soc: fsl: cpm1: qmc: Set the ret error code on platform_get_irq() failure
    
    [ Upstream commit cb3daa51db819a172e9524e96e2ed96b4237e51a ]
    
    A kernel test robot detected a missing error code:
       qmc.c:1942 qmc_probe() warn: missing error code 'ret'
    
    Indeed, the error returned by platform_get_irq() is checked and the
    operation is aborted in case of failure but the ret error code is
    not set in that case.
    
    Set the ret error code.
    
    Reported-by: kernel test robot <lkp@xxxxxxxxx>
    Reported-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>
    Closes: https://lore.kernel.org/r/202411051350.KNy6ZIWA-lkp@xxxxxxxxx/
    Fixes: 3178d58e0b97 ("soc: fsl: cpm1: Add support for QMC")
    Cc: stable@xxxxxxxxxxxxxxx
    Signed-off-by: Herve Codina <herve.codina@xxxxxxxxxxx>
    Link: https://lore.kernel.org/r/20241105145623.401528-1-herve.codina@xxxxxxxxxxx
    Signed-off-by: Christophe Leroy <christophe.leroy@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/soc/fsl/qe/qmc.c b/drivers/soc/fsl/qe/qmc.c
index 9fa75effcfc06..f1720c7cbe063 100644
--- a/drivers/soc/fsl/qe/qmc.c
+++ b/drivers/soc/fsl/qe/qmc.c
@@ -1420,8 +1420,10 @@ static int qmc_probe(struct platform_device *pdev)
 
 	/* Set the irq handler */
 	irq = platform_get_irq(pdev, 0);
-	if (irq < 0)
+	if (irq < 0) {
+		ret = irq;
 		goto err_exit_xcc;
+	}
 	ret = devm_request_irq(qmc->dev, irq, qmc_irq_handler, 0, "qmc", qmc);
 	if (ret < 0)
 		goto err_exit_xcc;




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux