Patch "usb: host: ehci-tegra: Fix error handling in tegra_ehci_probe()" has been added to the 5.9-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

    usb: host: ehci-tegra: Fix error handling in tegra_ehci_probe()

to the 5.9-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:
     usb-host-ehci-tegra-fix-error-handling-in-tegra_ehci.patch
and it can be found in the queue-5.9 subdirectory.

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



commit 0d3072eaf8fb326cc34eddd8f9ae73fcadb846c6
Author: Tang Bin <tangbin@xxxxxxxxxxxxxxxxxxxx>
Date:   Mon Oct 26 17:06:57 2020 +0800

    usb: host: ehci-tegra: Fix error handling in tegra_ehci_probe()
    
    [ Upstream commit 32d174d2d5eb318c34ff36771adefabdf227c186 ]
    
    If the function platform_get_irq() failed, the negative value
    returned will not be detected here. So fix error handling in
    tegra_ehci_probe().
    
    Fixes: 79ad3b5add4a ("usb: host: Add EHCI driver for NVIDIA Tegra SoCs")
    Acked-by: Alan Stern <stern@xxxxxxxxxxxxxxxxxxx>
    Acked-by: Thierry Reding <treding@xxxxxxxxxx>
    Signed-off-by: Tang Bin <tangbin@xxxxxxxxxxxxxxxxxxxx>
    Link: https://lore.kernel.org/r/20201026090657.49988-1-tangbin@xxxxxxxxxxxxxxxxxxxx
    Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/usb/host/ehci-tegra.c b/drivers/usb/host/ehci-tegra.c
index e077b2ca53c51..869d9c4de5fcd 100644
--- a/drivers/usb/host/ehci-tegra.c
+++ b/drivers/usb/host/ehci-tegra.c
@@ -479,8 +479,8 @@ static int tegra_ehci_probe(struct platform_device *pdev)
 	u_phy->otg->host = hcd_to_bus(hcd);
 
 	irq = platform_get_irq(pdev, 0);
-	if (!irq) {
-		err = -ENODEV;
+	if (irq < 0) {
+		err = irq;
 		goto cleanup_phy;
 	}
 



[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