mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v3 0/3] coresight: Fix fwnode reference leaks on probe failure
@ 2026-12-02 10:09 Yige Jiang
  2026-12-02 10:09 ` [PATCH v3 1/3] coresight: tpdm: Fix fwnode reference leak " Yige Jiang
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Yige Jiang @ 2026-12-02 10:09 UTC (permalink / raw)
  To: Suzuki K Poulose, Alexander Shishkin
  Cc: Yige Jiang, Mike Leach, James Clark, Leo Yan, coresight,
	linux-arm-kernel, linux-kernel

The CoreSight core releases the destination fwnode references acquired
during platform data lookup when registration fails or the device is
unregistered. Move the lookups in TPDM, TNOC and TPDA after the other
probe steps that can fail. TNOC and TPDA also return the trace IDs they
allocated if lookup or registration fails.

Changes in v3:
- Group the three patches in one thread following James Clark's feedback.
  No code changes from v2.
- Review: https://lore.kernel.org/r/b83bfb3d-d654-4b99-8ed5-ddbbf90fa6e1@linaro.org
- v2 was posted as three separate threads:
  https://lore.kernel.org/r/20261126-coresight-v2-58e559131f2f@gmail.com
  https://lore.kernel.org/r/20261126-coresight-v2-9e483a5f35a7@gmail.com
  https://lore.kernel.org/r/20261126-coresight-v2-e1077abdea61@gmail.com

Changes in v2:
- Rebase the TPDM fix on the CoreSight next tree.
- Add separate TNOC and TPDA fixes following the review of v1.
- v1: https://lore.kernel.org/all/rc-b1-20261110-vc-178-2d9055f946c8@gmail.com/

Testing on the v2 code: the baseline and patched TPDM, TNOC and TPDA
objects built on arm64 with GCC 14.2.0 and W=1, without warnings.
No hardware or runtime tests were performed.

Yige Jiang (3):
  coresight: tpdm: Fix fwnode reference leak on probe failure
  coresight: tnoc: Fix fwnode reference leak on probe failure
  coresight: tpda: Fix fwnode reference leak on probe failure

 drivers/hwtracing/coresight/coresight-tnoc.c | 22 +++++++++++++--------
 drivers/hwtracing/coresight/coresight-tpda.c | 29 ++++++++++++++++++----------
 drivers/hwtracing/coresight/coresight-tpdm.c | 11 ++++++-----
 3 files changed, 39 insertions(+), 23 deletions(-)

base-commit: b7d7462c7f973b65de511db6bebb99fb29946ed8

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

end of thread, other threads:[~2026-12-02 10:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-12-02 10:09 [PATCH v3 0/3] coresight: Fix fwnode reference leaks on probe failure Yige Jiang
2026-12-02 10:09 ` [PATCH v3 1/3] coresight: tpdm: Fix fwnode reference leak " Yige Jiang
2026-12-02 10:09 ` [PATCH v3 2/3] coresight: tnoc: " Yige Jiang
2026-12-02 10:09 ` [PATCH v3 3/3] coresight: tpda: " Yige Jiang

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

all inboxes | Powered by JetHome®