Re: [PATCH] clocksource/drivers/timer-atmel-pit: properly handle error cases

2018-09-27 Thread Daniel Lezcano
On 26/09/2018 14:38, Nicolas Ferre wrote: > Daniel, > > On 01/05/2018 at 10:36, Daniel Lezcano wrote: >> 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

Re: [PATCH] clocksource/drivers/timer-atmel-pit: properly handle error cases

2018-09-26 Thread Nicolas Ferre
Daniel, On 01/05/2018 at 10:36, Daniel Lezcano wrote: 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 i

Re: [PATCH] clocksource/drivers/timer-atmel-pit: properly handle error cases

2018-05-01 Thread Daniel Lezcano
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. > > R