Patch "ALSA: arm: pxa: pxa2xx-ac97-lib: fix return value check of platform_get_irq()" has been added to the 6.0-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

    ALSA: arm: pxa: pxa2xx-ac97-lib: fix return value check of platform_get_irq()

to the 6.0-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:
     alsa-arm-pxa-pxa2xx-ac97-lib-fix-return-value-check-.patch
and it can be found in the queue-6.0 subdirectory.

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



commit cd3e4495ba9ecb8cd0eabd5b41674a896deae6df
Author: Yang Yingliang <yangyingliang@xxxxxxxxxx>
Date:   Sat Oct 29 16:20:01 2022 +0800

    ALSA: arm: pxa: pxa2xx-ac97-lib: fix return value check of platform_get_irq()
    
    [ Upstream commit 46cf1954de3f324dc7f9472c12c3bd03b268a11b ]
    
    platform_get_irq() returns negative error number on failure, fix the
    return value check in pxa2xx_ac97_hw_probe() and assign the error code
    to 'ret'.
    
    Fixes: 2548e6c76ebf ("ARM: pxa: pxa2xx-ac97-lib: use IRQ resource")
    Signed-off-by: Yang Yingliang <yangyingliang@xxxxxxxxxx>
    Link: https://lore.kernel.org/r/20221029082001.3207380-1-yangyingliang@xxxxxxxxxx
    Signed-off-by: Takashi Iwai <tiwai@xxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/sound/arm/pxa2xx-ac97-lib.c b/sound/arm/pxa2xx-ac97-lib.c
index e55c0421718b..2ca33fd5a575 100644
--- a/sound/arm/pxa2xx-ac97-lib.c
+++ b/sound/arm/pxa2xx-ac97-lib.c
@@ -402,8 +402,10 @@ int pxa2xx_ac97_hw_probe(struct platform_device *dev)
 		goto err_clk2;
 
 	irq = platform_get_irq(dev, 0);
-	if (!irq)
+	if (irq < 0) {
+		ret = irq;
 		goto err_irq;
+	}
 
 	ret = request_irq(irq, pxa2xx_ac97_irq, 0, "AC97", NULL);
 	if (ret < 0)



[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