Most error branches following the call to alloc_event_data contain a call toI realized that I hadn't try to compile after having sent this patch and
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@xxxxxxxxx>
drivers/hwtracing/coresight/coresight-etm-perf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -215,7 +215,7 @@ static void *etm_setup_aux(int event_cpu
sink = coresight_get_enabled_sink(true);
- return NULL;
+ goto err;