]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ASoC: SDCA: Update memory allocations to zero initialise
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Tue, 15 Jul 2025 15:17:23 +0000 (16:17 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 15 Jul 2025 16:58:22 +0000 (17:58 +0100)
commit15247b5a63f506125360fa45d7aa1fbe8b903b95
tree91f1ef79ce34dc23b5ca847abeba477c7ebe8184
parent71562278a189af2ca202eafa0ab71a9b68469207
ASoC: SDCA: Update memory allocations to zero initialise

All the memory allocations in the SDCA ASoC helpers rely on fields being
zero initialised, the code should use kzalloc not kmalloc.

Reported-by: Shuming Fan <shumingf@realtek.com>
Fixes: 2c8b3a8e6aa8 ("ASoC: SDCA: Create DAPM widgets and routes from DisCo")
Fixes: c3ca24e3fcb6 ("ASoC: SDCA: Create ALSA controls from DisCo")
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://patch.msgid.link/20250715151723.2964336-4-ckeepax@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sdca/sdca_asoc.c