On Mon, Dec 15, 2025 at 01:20:42PM +0200, Peter Ujfalusi wrote: > The size of the data behind of scontrol->ipc_control_data for bytes > controls is: > [1] sizeof(struct sof_ipc4_control_data) + // kernel only struct > [2] sizeof(struct sof_abi_hdr)) + payload > > The max_size specifies the size of [2] and it is coming from topology. > > Change the function to take this into account and allocate adequate amount > of memory behind scontrol->ipc_control_data. > > With the change we will allocate [1] amount more memory to be able to hold > the full size of data. > > Fixes: 1bfde5818266 ("ASoC: SOF: ipc4-topology: add byte kcontrol support") Commit: e368b2ba332c ("ASoC: SOF: ipc4-control: Use the correct size for scontrol->ipc_control_data") Fixes tag: Fixes: 03f537690f40 ("ASoC: sof: Improve sof_ipc4_bytes_ext_put function") Has these problem(s): - Target SHA1 does not exist Commit: 7f256787a08a ("ASoC: SOF: ipc4-topology: Correct the allocation size for bytes controls") Fixes tag: Fixes: 1bfde5818266 ("ASoC: SOF: ipc4-topology: add byte kcontrol support") Has these problem(s): - Target SHA1 does not exist