]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
ASoC: cs35l56: Fix some cleanup memory leaks
authorMark Brown <broonie@kernel.org>
Wed, 10 Jun 2026 10:24:47 +0000 (11:24 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 10 Jun 2026 10:24:47 +0000 (11:24 +0100)
Richard Fitzgerald <rf@opensource.cirrus.com> says:

These are for-next.

They are not urgent because it only leaks memory if the driver failed to
component_probe or is removed, which wouldn't happen in normal use.

This series fixes some memory leaks:
- The memory allocated by wm_adsp/cs_dsp was not freed.
- If component_probe() failed it didn't clean up.

The addition of this cleanup in patch #3 exposes an existing possible
double-free of the debugfs, which is fixed in patch #2.

Link: https://patch.msgid.link/20260610093432.557375-1-rf@opensource.cirrus.com
1  2 
sound/soc/codecs/cs35l56-shared.c
sound/soc/codecs/cs35l56.c

Simple merge
Simple merge