Skip to contentSkip to conversation

ASoC: SOF: ipc4-control: Set correct error code in refresh_bytes_control

PATCH In review Peter Ujfalusi 2 participants 2 messages Feb 9

Subsystems (3)
lore
Share & tools
lore

Peter Ujfalusi

author maintainer
#0 lore raw

PATCH 1/1 ASoC: SOF: ipc4-control: Set correct error code in refresh_bytes_control

Return -EINVAL in case the scontrol contains more data than the amount of space available for it to store in sof_ipc4_refresh_bytes_control().

Fixes 2a28b5240f2b ("ASoC: SOF: ipc4-control: Add support for generic bytes control")
---
 sound/soc/sof/ipc4-control.c | 1 +
 1 file changed, 1 insertion(+)
sound/soc/sof/ipc4-control.c +1 -0
index 0500b690f9a3..596c3d77a34e 100644
@@ -362,6 +362,7 @@ sof_ipc4_refresh_bytes_control(struct snd_sof_control *scontrol, bool lock)
 				"%s: no space for data in %s (%zu, %zu)\n",
 				__func__, scontrol->name, msg->data_size,
 				scontrol->max_size - sizeof(*data));
+			ret = -EINVAL;
 			goto out;
 		}
 
Signature · 1 line
2.53.0
maintainer
#1 lore raw
Quoted 4 lines · Peter Ujfalusi

Return -EINVAL in case the scontrol contains more data than the amount of space available for it to store in sof_ipc4_refresh_bytes_control().

Applied to

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

Thanks!

[1/1] ASoC: SOF: ipc4-control: Set correct error code in refresh_bytes_control

      commit: f8f774913b4b599169381073f6674e20976e5529

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