All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] coresight: perf: Add a missing call to etm_free_aux
@ 2016-11-19 17:41 ` Quentin Lambert
  0 siblings, 0 replies; 12+ messages in thread
From: Quentin Lambert @ 2016-11-19 17:41 UTC (permalink / raw)
  To: linux-arm-kernel

Most error branches following the call to alloc_event_data contain a call to
etm_free_aux. This patch add a call to etm_free_aux to an error branch
that does not call it.

This issue was found with Hector.

Signed-off-by: Quentin Lambert <lambert.quentin@gmail.com>
---
 drivers/hwtracing/coresight/coresight-etm-perf.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/hwtracing/coresight/coresight-etm-perf.c
+++ b/drivers/hwtracing/coresight/coresight-etm-perf.c
@@ -215,7 +215,7 @@ static void *etm_setup_aux(int event_cpu
 	 */
 	sink = coresight_get_enabled_sink(true);
 	if (!sink)
-		return NULL;
+		goto err;
 
 	INIT_WORK(&event_data->work, free_event_data);
 

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

end of thread, other threads:[~2016-11-21 17:17 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-19 17:41 [PATCH] coresight: perf: Add a missing call to etm_free_aux Quentin Lambert
2016-11-19 17:41 ` Quentin Lambert
2016-11-19 17:41 ` Quentin Lambert
2016-11-19 18:22 ` Quentin Lambert
2016-11-19 18:22   ` Quentin Lambert
2016-11-19 18:22   ` Quentin Lambert
2016-11-19 18:42   ` Quentin Lambert
2016-11-19 18:42     ` Quentin Lambert
2016-11-19 18:42     ` Quentin Lambert
2016-11-21 17:17 ` Mathieu Poirier
2016-11-21 17:17   ` Mathieu Poirier
2016-11-21 17:17   ` Mathieu Poirier

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.