Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/4] ASoC: amd: vg: fix signedness bug in acp5x_audio_probe()
@ 2022-03-04 13:12 Dan Carpenter
  2022-03-04 13:13 ` [PATCH 2/4] ASoC: amd: pcm-dma: Fix signedness bug in acp_pdm_audio_probe() Dan Carpenter
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Dan Carpenter @ 2022-03-04 13:12 UTC (permalink / raw)
  To: Liam Girdwood, Meng Tang
  Cc: alsa-devel, kernel-janitors, Pierre-Louis Bossart, Takashi Iwai,
	Mark Brown, Vijendar Mukunda

The "adata->i2s_irq" variable is unsigned so the error handling
will not work.

Fixes: 87d71a128771 ("ASoC: amd: pcm-dma: Use platform_get_irq() to get the interrupt")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
---
 sound/soc/amd/vangogh/acp5x-pcm-dma.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/sound/soc/amd/vangogh/acp5x-pcm-dma.c b/sound/soc/amd/vangogh/acp5x-pcm-dma.c
index e4e668593b3d..31fa166df98a 100644
--- a/sound/soc/amd/vangogh/acp5x-pcm-dma.c
+++ b/sound/soc/amd/vangogh/acp5x-pcm-dma.c
@@ -388,9 +388,10 @@ static int acp5x_audio_probe(struct platform_device *pdev)
 	if (!adata->acp5x_base)
 		return -ENOMEM;
 
-	adata->i2s_irq = platform_get_irq(pdev, 0);
-	if (adata->i2s_irq < 0)
-		return -ENODEV;
+	status = platform_get_irq(pdev, 0);
+	if (status < 0)
+		return status;
+	adata->i2s_irq = status;
 
 	dev_set_drvdata(&pdev->dev, adata);
 	status = devm_snd_soc_register_component(&pdev->dev,
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-03-07 20:43 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-04 13:12 [PATCH 1/4] ASoC: amd: vg: fix signedness bug in acp5x_audio_probe() Dan Carpenter
2022-03-04 13:13 ` [PATCH 2/4] ASoC: amd: pcm-dma: Fix signedness bug in acp_pdm_audio_probe() Dan Carpenter
2022-03-04 13:14 ` [PATCH 1/3] ASoC: amd: acp: Fix signedness bug in renoir_audio_probe() Dan Carpenter
2022-03-07 20:39   ` Mark Brown
2022-03-04 13:15 ` [PATCH 4/4] ASoC: amd: pcm-dma: Fix signedness bug in acp3x_audio_probe() Dan Carpenter
2022-03-07 12:40 ` [PATCH 1/4] ASoC: amd: vg: fix signedness bug in acp5x_audio_probe() Mark Brown
2022-03-07 12:41   ` Dan Carpenter
2022-03-07 16:27     ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox