Commit ec98960e authored by Quentin Lambert's avatar Quentin Lambert Committed by Greg Kroah-Hartman

coresight: perf: Add a missing call to etm_free_aux

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: default avatarQuentin Lambert <lambert.quentin@gmail.com>
Signed-off-by: default avatarMathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent bcb5b815
...@@ -215,7 +215,7 @@ static void *etm_setup_aux(int event_cpu, void **pages, ...@@ -215,7 +215,7 @@ static void *etm_setup_aux(int event_cpu, void **pages,
*/ */
sink = coresight_get_enabled_sink(true); sink = coresight_get_enabled_sink(true);
if (!sink) if (!sink)
return NULL; goto err;
INIT_WORK(&event_data->work, free_event_data); INIT_WORK(&event_data->work, free_event_data);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment