mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] ASoC: cs35l56: Fix some cleanup memory leaks
@ 2026-06-09 12:07 Richard Fitzgerald
  2026-06-09 12:07 ` [PATCH 1/2] ASoC: cs35l56: Fix missing calls to wm_adsp2_remove() Richard Fitzgerald
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Richard Fitzgerald @ 2026-06-09 12:07 UTC (permalink / raw)
  To: broonie; +Cc: linux-sound, linux-kernel, patches

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.

These two patches fix some memory leaks:
- The memory allocated by wm_adsp/cs_dsp was not freed.
- If component_probe() failed it didn't clean up.

Richard Fitzgerald (2):
  ASoC: cs35l56: Fix missing calls to wm_adsp2_remove()
  ASoC: cs35l56: Cleanup if component_probe fails

 sound/soc/codecs/cs35l56.c | 20 ++++++++++++++++++--
 sound/soc/codecs/wm_adsp.c |  7 +++++++
 2 files changed, 25 insertions(+), 2 deletions(-)

-- 
2.47.3


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-06-10  8:38 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-09 12:07 [PATCH 0/2] ASoC: cs35l56: Fix some cleanup memory leaks Richard Fitzgerald
2026-06-09 12:07 ` [PATCH 1/2] ASoC: cs35l56: Fix missing calls to wm_adsp2_remove() Richard Fitzgerald
2026-06-09 12:07 ` [PATCH 2/2] ASoC: cs35l56: Cleanup if component_probe fails Richard Fitzgerald
2026-06-09 13:02 ` [PATCH 0/2] ASoC: cs35l56: Fix some cleanup memory leaks Richard Fitzgerald
2026-06-09 17:29   ` Mark Brown
2026-06-10  8:38     ` Richard Fitzgerald

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome