]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ASoC: SOF: ipc4-control: Set correct error code in refresh_bytes_control
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Mon, 9 Feb 2026 12:02:39 +0000 (14:02 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 9 Feb 2026 12:27:28 +0000 (12:27 +0000)
commitf8f774913b4b599169381073f6674e20976e5529
tree69a4ce79f66735442ce27d174ef10f9e1c98a335
parent3a7dbc729e42b95f1a82806a11128c1926ab26d8
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().

Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Closes: https://lore.kernel.org/linux-sound/aYXvFr-LVHVJSvS7@stanley.mountain/
Fixes: 2a28b5240f2b ("ASoC: SOF: ipc4-control: Add support for generic bytes control")
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Link: https://patch.msgid.link/20260209120239.6066-1-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/ipc4-control.c