* [PATCH 2/4] ASoC: amd: pcm-dma: Fix signedness bug in acp_pdm_audio_probe()
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 ` Dan Carpenter
2022-03-04 13:14 ` [PATCH 1/3] ASoC: amd: acp: Fix signedness bug in renoir_audio_probe() Dan Carpenter
` (2 subsequent siblings)
3 siblings, 0 replies; 8+ messages in thread
From: Dan Carpenter @ 2022-03-04 13:13 UTC (permalink / raw)
To: Liam Girdwood, Meng Tang
Cc: Jiapeng Chong, alsa-devel, kernel-janitors, Pierre-Louis Bossart,
Takashi Iwai, Mark Brown, Ye Bin
The "adata->pdm_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/renoir/acp3x-pdm-dma.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/sound/soc/amd/renoir/acp3x-pdm-dma.c b/sound/soc/amd/renoir/acp3x-pdm-dma.c
index 88a242538461..8c42345ee41e 100644
--- a/sound/soc/amd/renoir/acp3x-pdm-dma.c
+++ b/sound/soc/amd/renoir/acp3x-pdm-dma.c
@@ -399,9 +399,10 @@ static int acp_pdm_audio_probe(struct platform_device *pdev)
if (!adata->acp_base)
return -ENOMEM;
- adata->pdm_irq = platform_get_irq(pdev, 0);
- if (adata->pdm_irq < 0)
- return -ENODEV;
+ status = platform_get_irq(pdev, 0);
+ if (status < 0)
+ return status;
+ adata->pdm_irq = status;
adata->capture_stream = NULL;
--
2.20.1
^ permalink raw reply related [flat|nested] 8+ messages in thread* [PATCH 1/3] ASoC: amd: acp: Fix signedness bug in renoir_audio_probe()
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 ` 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
3 siblings, 1 reply; 8+ messages in thread
From: Dan Carpenter @ 2022-03-04 13:14 UTC (permalink / raw)
To: Liam Girdwood, Meng Tang
Cc: alsa-devel, Ajit Kumar Pandey, kernel-janitors, Takashi Iwai,
Mark Brown
The "adata->i2s_irq" is unsigned so this error handling will not
work.
Fixes: 3304a242f45a ("ASoC: amd: Use platform_get_irq_byname() to get the interrupt")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
---
sound/soc/amd/acp/acp-renoir.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/sound/soc/amd/acp/acp-renoir.c b/sound/soc/amd/acp/acp-renoir.c
index 738cf2e2b973..75c9229ece97 100644
--- a/sound/soc/amd/acp/acp-renoir.c
+++ b/sound/soc/amd/acp/acp-renoir.c
@@ -282,9 +282,10 @@ static int renoir_audio_probe(struct platform_device *pdev)
if (!adata->acp_base)
return -ENOMEM;
- adata->i2s_irq = platform_get_irq_byname(pdev, "acp_dai_irq");
- if (adata->i2s_irq < 0)
- return -ENODEV;
+ ret = platform_get_irq_byname(pdev, "acp_dai_irq");
+ if (ret < 0)
+ return ret;
+ adata->i2s_irq = ret;
adata->dev = dev;
adata->dai_driver = acp_renoir_dai;
--
2.20.1
^ permalink raw reply related [flat|nested] 8+ messages in thread* Re: [PATCH 1/3] ASoC: amd: acp: Fix signedness bug in renoir_audio_probe()
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
0 siblings, 0 replies; 8+ messages in thread
From: Mark Brown @ 2022-03-07 20:39 UTC (permalink / raw)
To: Liam Girdwood, Dan Carpenter, Meng Tang
Cc: alsa-devel, kernel-janitors, Takashi Iwai, Ajit Kumar Pandey
On Fri, 4 Mar 2022 16:14:49 +0300, Dan Carpenter wrote:
> The "adata->i2s_irq" is unsigned so this error handling will not
> work.
>
>
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/3] ASoC: amd: acp: Fix signedness bug in renoir_audio_probe()
commit: 899a9a7f624b5a9d100c9ac6b3f0960981f0e4c5
[2/4] ASoC: amd: pcm-dma: Fix signedness bug in acp_pdm_audio_probe()
commit: 00925272f166db31fed73f3c00c151eb5f7ce1d8
[4/4] ASoC: amd: pcm-dma: Fix signedness bug in acp3x_audio_probe()
commit: 9a33f5632ca573e512c49fa46cc7131cbc83d4c9
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 4/4] ASoC: amd: pcm-dma: Fix signedness bug in acp3x_audio_probe()
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-04 13:15 ` Dan Carpenter
2022-03-07 12:40 ` [PATCH 1/4] ASoC: amd: vg: fix signedness bug in acp5x_audio_probe() Mark Brown
3 siblings, 0 replies; 8+ messages in thread
From: Dan Carpenter @ 2022-03-04 13:15 UTC (permalink / raw)
To: Liam Girdwood, Meng Tang
Cc: alsa-devel, kernel-janitors, Takashi Iwai, Mark Brown,
Vijendar Mukunda, Gu Shengxian
The "adata->i2s_irq" variable is unsigned so this error handling
code 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/raven/acp3x-pcm-dma.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/sound/soc/amd/raven/acp3x-pcm-dma.c b/sound/soc/amd/raven/acp3x-pcm-dma.c
index e4f8dbf0d11d..6aec11cf0a6a 100644
--- a/sound/soc/amd/raven/acp3x-pcm-dma.c
+++ b/sound/soc/amd/raven/acp3x-pcm-dma.c
@@ -394,9 +394,10 @@ static int acp3x_audio_probe(struct platform_device *pdev)
if (!adata->acp3x_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* Re: [PATCH 1/4] ASoC: amd: vg: fix signedness bug in acp5x_audio_probe()
2022-03-04 13:12 [PATCH 1/4] ASoC: amd: vg: fix signedness bug in acp5x_audio_probe() Dan Carpenter
` (2 preceding siblings ...)
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 ` Mark Brown
2022-03-07 12:41 ` Dan Carpenter
3 siblings, 1 reply; 8+ messages in thread
From: Mark Brown @ 2022-03-07 12:40 UTC (permalink / raw)
To: Dan Carpenter
Cc: alsa-devel, Liam Girdwood, Meng Tang, kernel-janitors,
Pierre-Louis Bossart, Takashi Iwai, Vijendar Mukunda
[-- Attachment #1: Type: text/plain, Size: 191 bytes --]
On Fri, Mar 04, 2022 at 04:12:56PM +0300, Dan Carpenter wrote:
> The "adata->i2s_irq" variable is unsigned so the error handling
> will not work.
This series has a 1/4 and a 1/3 but no 3/4.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [PATCH 1/4] ASoC: amd: vg: fix signedness bug in acp5x_audio_probe()
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
0 siblings, 1 reply; 8+ messages in thread
From: Dan Carpenter @ 2022-03-07 12:41 UTC (permalink / raw)
To: Mark Brown
Cc: alsa-devel, Liam Girdwood, Meng Tang, kernel-janitors,
Pierre-Louis Bossart, Takashi Iwai, Vijendar Mukunda
On Mon, Mar 07, 2022 at 12:40:10PM +0000, Mark Brown wrote:
> On Fri, Mar 04, 2022 at 04:12:56PM +0300, Dan Carpenter wrote:
> > The "adata->i2s_irq" variable is unsigned so the error handling
> > will not work.
>
> This series has a 1/4 and a 1/3 but no 3/4.
Oops. Sorry about that. The 1/3 was intended to be 3/4. Do you need
me to resend it?
regards,
dan carpenter
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 1/4] ASoC: amd: vg: fix signedness bug in acp5x_audio_probe()
2022-03-07 12:41 ` Dan Carpenter
@ 2022-03-07 16:27 ` Mark Brown
0 siblings, 0 replies; 8+ messages in thread
From: Mark Brown @ 2022-03-07 16:27 UTC (permalink / raw)
To: Dan Carpenter
Cc: alsa-devel, Liam Girdwood, Meng Tang, kernel-janitors,
Pierre-Louis Bossart, Takashi Iwai, Vijendar Mukunda
[-- Attachment #1: Type: text/plain, Size: 257 bytes --]
On Mon, Mar 07, 2022 at 03:41:52PM +0300, Dan Carpenter wrote:
> Oops. Sorry about that. The 1/3 was intended to be 3/4. Do you need
> me to resend it?
I think I worked around it but please check what gets applied and resend
anything that got dropped.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread