Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754680AbcKURRk (ORCPT ); Mon, 21 Nov 2016 12:17:40 -0500 Received: from mail-io0-f173.google.com ([209.85.223.173]:36671 "EHLO mail-io0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754248AbcKURRi (ORCPT ); Mon, 21 Nov 2016 12:17:38 -0500 Date: Mon, 21 Nov 2016 10:17:35 -0700 From: Mathieu Poirier To: Quentin Lambert Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: Re: [PATCH] coresight: perf: Add a missing call to etm_free_aux Message-ID: <20161121171735.GA12578@linaro.org> References: <20161119174124.20136-1-lambert.quentin@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20161119174124.20136-1-lambert.quentin@gmail.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1004 Lines: 30 On Sat, Nov 19, 2016 at 06:41:24PM +0100, Quentin Lambert wrote: > 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 > --- > drivers/hwtracing/coresight/coresight-etm-perf.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > --- 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 > */ > sink = coresight_get_enabled_sink(true); > if (!sink) > - return NULL; > + goto err; > > INIT_WORK(&event_data->work, free_event_data); > Applied, after wrapping the commit log to 75 characters or less. Please run checkpatch.pl on your next submission and compiling your work before sending a patches is highly suggested. Thanks, Mathieu