Linux Sound subsystem development
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Zhiqi Zhang" <zhiqizhangg@gmail.com>
Cc: linux-sound@vger.kernel.org
Subject: Re: [PATCH v2 3/4] ASoC: codecs: wcd938x: check component match allocation
Date: Fri, 04 Dec 2026 13:30:08 +0000	[thread overview]
Message-ID: <sashiko-outbox-249867@kernel.org> (raw)
In-Reply-To: <20261204125837.81419-4-zhiqizhangg@gmail.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] ASoC: wcd938x: missing Fixes tag for bundled us_euro_mux cleanup
  fix
--

commit da3398842c3a0e9bb3ae370be1a207b0005ebbee
Author: Zhiqi Zhang <zhiqizhangg@gmail.com>

> ASoC: codecs: wcd938x: check component match allocation
>
> component_match_add_release() reports allocation failures by storing an
> ERR_PTR in the caller supplied match pointer. The wcd938x helper ignores
> that state and can later pass the error pointer to
> component_master_add_with_match(), which dereferences match->num.
>
> The failed add also does not take ownership of the phandle reference
> passed as compare data, so the current rx or tx node must be released by
> the caller.
>
> Check the match pointer after each add, drop the node reference that was
> not transferred to the match entry, and return the allocation error.
>
> The codec probe also selects the optional us/euro mux before adding the
> SoundWire component matches. Route later probe failures through the mux
> cleanup path so the selected state is released when match allocation or
> aggregate registration fails.
>
> Fixes: 8d78602aa87a ("ASoC: codecs: wcd938x: add basic driver")
> Signed-off-by: Zhiqi Zhang <zhiqizhangg@gmail.com>

[Severity: Low]
This patch bundles two separate fixes: the component_match_add_release()
check for 8d78602aa87a ("ASoC: codecs: wcd938x: add basic driver") and the
us_euro_mux probe-failure cleanup for eec611d26f84 ("ASoC: codecs: wcd938x:
add mux control support for hp audio mux").

Bundling the us_euro_mux cleanup will cause merge conflicts when backporting
the match-allocation fix to stable trees that predate us_euro_mux.  Should
the mux cleanup be split into a separate patch, or at least include:

  Fixes: eec611d26f84 ("ASoC: codecs: wcd938x: add mux control support for hp audio mux")

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261204125837.81419-1-zhiqizhangg@gmail.com?part=3

  reply	other threads:[~2026-12-04 13:30 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-04 12:58 [PATCH v2 0/4] ASoC: codecs: handle component match allocation failures Zhiqi Zhang
2026-12-04 12:58 ` [PATCH v2 1/4] ASoC: codecs: pm4125: check component match allocation Zhiqi Zhang
2026-12-04 13:21   ` sashiko-bot
2026-12-04 12:58 ` [PATCH v2 2/4] ASoC: codecs: wcd937x: " Zhiqi Zhang
2026-12-04 12:58 ` [PATCH v2 3/4] ASoC: codecs: wcd938x: " Zhiqi Zhang
2026-12-04 13:30   ` sashiko-bot [this message]
2026-12-04 12:58 ` [PATCH v2 4/4] ASoC: codecs: wcd939x: " Zhiqi Zhang

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=sashiko-outbox-249867@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=linux-sound@vger.kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=zhiqizhangg@gmail.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