]> git.ipfire.org Git - thirdparty/linux.git/commit
ASoC: cs35l56: Fix missing calls to wm_adsp2_remove()
authorRichard Fitzgerald <rf@opensource.cirrus.com>
Wed, 10 Jun 2026 09:34:30 +0000 (10:34 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 10 Jun 2026 10:24:44 +0000 (11:24 +0100)
commit85f7bf03632bfcdd6cedfb3945b7e387d9487d73
treef7d441de7bf8b1c7bb89b8a107062357bb9c8f6b
parent25b17c06040fae60518b4ff9c46f2bb12285d538
ASoC: cs35l56: Fix missing calls to wm_adsp2_remove()

Call wm_adsp2_remove() in cs35l56_remove() and the error path of
cs35l56_common_probe().

Depends on commit 7d3fb78b5503 ("ASoC: wm_adsp: Fix NULL dereference
when removing firmware controls").

The call to wm_halo_init() during driver probe should be paired with
a call to wm_adsp2_remove() but this was missing. The consequence
would be a memory leak of the control lists in the cs_dsp driver.

Fixes: e49611252900 ("ASoC: cs35l56: Add driver for Cirrus Logic CS35L56")
Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Link: https://patch.msgid.link/20260610093432.557375-2-rf@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs35l56.c