From: Richard Fitzgerald <rf@opensource.cirrus.com>
To: broonie@kernel.org
Cc: linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org,
patches@opensource.cirrus.com
Subject: [PATCH 0/2] ASoC: cs35l56: Fix some cleanup memory leaks
Date: Tue, 9 Jun 2026 13:07:36 +0100 [thread overview]
Message-ID: <20260609120738.284770-1-rf@opensource.cirrus.com> (raw)
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
next reply other threads:[~2026-06-09 12:08 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-09 12:07 Richard Fitzgerald [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260609120738.284770-1-rf@opensource.cirrus.com \
--to=rf@opensource.cirrus.com \
--cc=broonie@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=patches@opensource.cirrus.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox