[PATCH v3 0/3] coresight: Fix fwnode reference leaks on probe failure
Yige Jiang
yigejiang86 at gmail.com
Wed Dec 2 02:09:17 PST 2026
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
More information about the linux-arm-kernel
mailing list