]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ASoC: SDCA: bug fix while parsing mipi-sdca-control-cn-list
authorNiranjan H Y <niranjan.hy@ti.com>
Mon, 10 Nov 2025 15:26:46 +0000 (20:56 +0530)
committerMark Brown <broonie@kernel.org>
Mon, 10 Nov 2025 16:22:49 +0000 (16:22 +0000)
commiteb2d6774cc0d9d6ab8f924825695a85c14b2e0c2
treebf76e513378663f3d0d4eb1c02b48bbabdfe14d3
parent29528c8e643bb0c54da01237a35010c6438423d2
ASoC: SDCA: bug fix while parsing mipi-sdca-control-cn-list

"struct sdca_control" declares "values" field as integer array.
But the memory allocated to it is of char array. This causes
crash for sdca_parse_function API. This patch addresses the
issue by allocating correct data size.

Signed-off-by: Niranjan H Y <niranjan.hy@ti.com>
Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://patch.msgid.link/20251110152646.192-1-niranjan.hy@ti.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sdca/sdca_functions.c