kernel_samsung_a53x/drivers/hwtracing/coresight
James Clark cf4853aace coresight: Fix ref leak when of_coresight_parse_endpoint() fails
[ Upstream commit 7fcb9cb2fe47294e16067c3cfd25332c8662a115 ]

of_graph_get_next_endpoint() releases the reference to the previous
endpoint on each iteration, but when parsing fails the loop exits
early meaning the last reference is never dropped.

Fix it by dropping the refcount in the exit condition.

Fixes: d375b356e687 ("coresight: Fix support for sparsely populated ports")
Signed-off-by: James Clark <james.clark@arm.com>
Reported-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Link: https://lore.kernel.org/r/20240529133626.90080-1-james.clark@arm.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-23 23:20:10 +01:00
..
coresight-catu.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
coresight-catu.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
coresight-core.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
coresight-cpu-debug.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
coresight-cti-core.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
coresight-cti-platform.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
coresight-cti-sysfs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
coresight-cti.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
coresight-etb10.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
coresight-etm-cp14.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
coresight-etm-perf.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
coresight-etm-perf.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
coresight-etm.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
coresight-etm3x-core.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
coresight-etm3x-sysfs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
coresight-etm4x-core.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
coresight-etm4x-sysfs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
coresight-etm4x.h coresight: etm4x: Fix width of CCITMIN field 2024-11-18 12:12:19 +01:00
coresight-funnel.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
coresight-platform.c coresight: Fix ref leak when of_coresight_parse_endpoint() fails 2024-11-23 23:20:10 +01:00
coresight-priv.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
coresight-replicator.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
coresight-self-hosted-trace.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
coresight-stm.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
coresight-sysfs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
coresight-tmc-core.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
coresight-tmc-etf.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
coresight-tmc-etr.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
coresight-tmc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
coresight-tpiu.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
coresight-trbe.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
coresight-trbe.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00