From: Quentin Lambert Date: Tue, 29 Nov 2016 16:47:19 +0000 (-0700) Subject: coresight: perf: Add a missing call to etm_free_aux X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ec98960e0bbbe49b569b09c14ccd82efeb232dc8;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Mathieu Poirier Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/hwtracing/coresight/coresight-etm-perf.c b/drivers/hwtracing/coresight/coresight-etm-perf.c index 5a346fc8ce06..17741969026e 100644 --- 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, void **pages, */ sink = coresight_get_enabled_sink(true); if (!sink) - return NULL; + goto err; INIT_WORK(&event_data->work, free_event_data);