ASoC: SOF: ipc4-control: Set correct error code in refresh_bytes_control
Subsystems (3)
Peter Ujfalusi
maintainerPATCH 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().
--- sound/soc/sof/ipc4-control.c | 1 + 1 file changed, 1 insertion(+)
sound/soc/sof/ipc4-control.c +1 -0
@@ -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
Mark Brown
maintainerQuoted 4 lines · Peter Ujfalusi
Return
-EINVALin case the scontrol contains more data than the amount of space available for it to store insof_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