Patch "serial: 8250: omap: Cleanup on error in request_irq" has been added to the 6.11-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

    serial: 8250: omap: Cleanup on error in request_irq

to the 6.11-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:
     serial-8250-omap-cleanup-on-error-in-request_irq.patch
and it can be found in the queue-6.11 subdirectory.

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



commit d96b07cf44d4c00acee324f81f733cef4face390
Author: Markus Schneider-Pargmann <msp@xxxxxxxxxxxx>
Date:   Wed Aug 7 16:12:25 2024 +0200

    serial: 8250: omap: Cleanup on error in request_irq
    
    [ Upstream commit 35e648a16018b747897be2ccc3ce95ff23237bb5 ]
    
    If devm_request_irq fails, the code does not cleanup many things that
    were setup before. Instead of directly returning ret we should jump to
    err.
    
    Fixes: fef4f600319e ("serial: 8250: omap: Fix life cycle issues for interrupt handlers")
    Signed-off-by: Markus Schneider-Pargmann <msp@xxxxxxxxxxxx>
    Reviewed-by: Kevin Hilman <khilman@xxxxxxxxxxxx>
    Tested-by: Kevin Hilman <khilman@xxxxxxxxxxxx>
    Link: https://lore.kernel.org/r/20240807141227.1093006-4-msp@xxxxxxxxxxxx
    Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/tty/serial/8250/8250_omap.c b/drivers/tty/serial/8250/8250_omap.c
index afef1dd4ddf49..fca5f25d693a7 100644
--- a/drivers/tty/serial/8250/8250_omap.c
+++ b/drivers/tty/serial/8250/8250_omap.c
@@ -1581,7 +1581,7 @@ static int omap8250_probe(struct platform_device *pdev)
 	ret = devm_request_irq(&pdev->dev, up.port.irq, omap8250_irq, 0,
 			       dev_name(&pdev->dev), priv);
 	if (ret < 0)
-		return ret;
+		goto err;
 
 	priv->wakeirq = irq_of_parse_and_map(np, 1);
 




[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