All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/2] component: fix match add failure handling
@ 2026-12-06  2:48 Zhiqi Zhang
  2026-12-06  2:48 ` [PATCH v3 1/2] component: release match data on add failure Zhiqi Zhang
  2026-12-06  2:48 ` [PATCH v3 2/2] ASoC: codecs: wcd938x: deselect mux on probe failures Zhiqi Zhang
  0 siblings, 2 replies; 4+ messages in thread
From: Zhiqi Zhang @ 2026-12-06  2:48 UTC (permalink / raw)
  To: Greg Kroah-Hartman, rafael, Mark Brown, Srinivas Kandagatla
  Cc: Danilo Krummrich, Johan Hovold, Liam Girdwood, Jaroslav Kysela,
	Takashi Iwai, dri-devel, driver-core, linux-sound, linux-arm-msm,
	Zhiqi Zhang

Hi,

v2 fixed component_match_add_release() allocation failures in individual
ASoC codec helpers. Review pointed out that the underlying problem is in
the component helper: component_match_add_release() has a void interface,
so callers that pass owned data through wrappers such as
drm_of_component_match_add() cannot reliably drop it on failure. The same
error state can later be passed to component_master_add_with_match(),
which dereferences match->num.

This v3 moves the match-data cleanup and ERR_PTR handling into the
component core. The wcd938x us/euro mux cleanup that was previously
bundled with the match allocation fix is kept as a separate patch with
its own Fixes tag.

Changes since v2:
- Replace the per-codec match allocation checks with one component core
  fix.
- Split the wcd938x mux cleanup into a separate patch.
- Route wcd938x_populate_dt_data() failures through mux deselect as well.

v2: https://lore.kernel.org/r/20261204125837.81419-1-zhiqizhangg@gmail.com

Zhiqi Zhang (2):
  component: release match data on add failure
  ASoC: codecs: wcd938x: deselect mux on probe failures

 drivers/base/component.c   | 17 ++++++++++++++++-
 sound/soc/codecs/wcd938x.c | 24 +++++++++++++++++-------
 2 files changed, 33 insertions(+), 8 deletions(-)

-- 
2.54.0 (Apple Git-157)


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

end of thread, other threads:[~2026-12-06  3:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-06  2:48 [PATCH v3 0/2] component: fix match add failure handling Zhiqi Zhang
2026-12-06  2:48 ` [PATCH v3 1/2] component: release match data on add failure Zhiqi Zhang
2026-12-06  3:01   ` sashiko-bot
2026-12-06  2:48 ` [PATCH v3 2/2] ASoC: codecs: wcd938x: deselect mux on probe failures Zhiqi Zhang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.