[PATCH] ASoC: SOF: ipc3-topology: Move and correct size checks in sof_ipc3_control_load_bytes()
Mark Brown
broonie at kernel.org
Fri Jun 10 16:38:13 CEST 2022
On Fri, 10 Jun 2022 11:47:35 +0300, Peter Ujfalusi wrote:
> Move the size checks prior to allocating memory as these checks do not need
> the data to be allocated and in case of an error we would not need to free
> the allocation.
>
> The max size must not be less than the size of
> struct sof_ipc_ctrl_data + struct sof_abi_hdr as the ABI header needs to
> be present under all circumstances.
> The check was incorrectly used or between the two size checks.
>
> [...]
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/1] ASoC: SOF: ipc3-topology: Move and correct size checks in sof_ipc3_control_load_bytes()
commit: 5702b838dd9a8be634f9c6bdfd769422c26e9162
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
More information about the Alsa-devel
mailing list