Skip to contentSkip to conversation

ASoC: amd: acp3x: Fix signedness bug in acp3x

PATCH In review YueHaibing 2 participants 2 messages Mar 5, 2022 – Mar 8, 2022

Subsystems (3)
lore
Share & tools
lore

YueHaibing

author
#0 lore raw

PATCH 1/1 ASoC: amd: acp3x: Fix signedness bug in acp3x

In acp3x_audio_probe() platform_get_irq() may return error, but i2s_irq now is unsigned int so the error handling is never triggered.

Fixes 87d71a128771 ("ASoC: amd: pcm-dma: Use platform_get_irq() to get the interrupt")
---
 sound/soc/amd/raven/acp3x.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/amd/raven/acp3x.h +1 -1
index c3f0c8b7545d..7702f628ecd6 100644
@@ -87,7 +87,7 @@ struct acp3x_platform_info {
 
 struct i2s_dev_data {
 	bool tdm_mode;
-	unsigned int i2s_irq;
+	int i2s_irq;
 	u16 i2s_instance;
 	u32 tdm_fmt;
 	u32 substream_type;
Signature · 1 line
2.17.1
maintainer
#1 lore raw
Quoted 4 lines · YueHaibing

In acp3x_audio_probe() platform_get_irq() may return error, but i2s_irq now is unsigned int so the error handling is never triggered.

Applied to

https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next

Thanks!

[1/1] ASoC: amd: acp3x: Fix signedness bug in acp3x

      commit: 6f6f28bf5d8e070c1e4a10d62d2a1af264683042

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