]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
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)
commit3fd01f2e0500178daa01fbda918678578a2d9431
treec97b7152d6ed4b4604159838e93afe326997a6f3
parent26deeee42f4f1ab8da7e45808c3050438c577e53
parenta0df7522dfb098d56b42560247082d6f5a8581dd
ASoC: cs35l56: Fix some cleanup memory leaks

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
sound/soc/codecs/cs35l56-shared.c
sound/soc/codecs/cs35l56.c