Skip to content

Commit

Permalink
coresight: perf: Add a missing call to etm_free_aux
Browse files Browse the repository at this point in the history
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>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Quentin Lambert authored and Greg Kroah-Hartman committed Nov 29, 2016
1 parent bcb5b81 commit ec98960
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/hwtracing/coresight/coresight-etm-perf.c
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ static void *etm_setup_aux(int event_cpu, void **pages,
*/
sink = coresight_get_enabled_sink(true);
if (!sink)
return NULL;
goto err;

INIT_WORK(&event_data->work, free_event_data);

Expand Down

0 comments on commit ec98960

Please sign in to comment.