From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754059AbeEAIge (ORCPT ); Tue, 1 May 2018 04:36:34 -0400 Received: from mail-wr0-f195.google.com ([209.85.128.195]:44269 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751081AbeEAIgb (ORCPT ); Tue, 1 May 2018 04:36:31 -0400 X-Google-Smtp-Source: AB8JxZoy2Z/+GNmRA++Lwrc5/yHzJyOj41J+0PPuyAa9YL9EKT/ak1LqZsv0TGWR6t90mv4LbBHxlA== Date: Tue, 1 May 2018 10:36:26 +0200 From: Daniel Lezcano To: Alexandre Belloni Cc: Thomas Gleixner , Nicolas Ferre , Boris Brezillon , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] clocksource/drivers/timer-atmel-pit: properly handle error cases Message-ID: <20180501083626.GE27619@mai> References: <20180425101439.28908-1-alexandre.belloni@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180425101439.28908-1-alexandre.belloni@bootlin.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 On Wed, Apr 25, 2018 at 12:14:39PM +0200, Alexandre Belloni wrote: > smatch now reports a possible leak: > > smatch warnings: > drivers/clocksource/timer-atmel-pit.c:183 at91sam926x_pit_dt_init() warn: possible memory leak of 'data' > > Ensure data is freed before exiting with an error. > > Reported-by: Dan Carpenter > Signed-off-by: Alexandre Belloni > --- Applied for 4.17-rc -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog