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: Quentin Lambert <lambert.quentin@gmail.com> Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org> (cherry picked from commit 285fb22a8f3b242727da09d43262ef8dfd6424dd)
This commit is contained in:
committed by
Guodong Xu
parent
1825a7db86
commit
61c6ef2dc8
@@ -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);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user