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

Nicolas Ferre nicolas.ferre at microchip.com
Wed Sep 26 05:38:25 PDT 2018


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 is freed before exiting with an error.
>> Reported-by: Dan Carpenter <dan.carpenter at oracle.com>
>> Signed-off-by: Alexandre Belloni <alexandre.belloni at bootlin.com>
>> ---
> Applied for 4.17-rc

We don't see it in Mainline as of 4.19-rc neither in linux-next. Has it 
been forgotten?

Thanks for your help. Best regards,
Nicolas Ferre

More information about the linux-arm-kernel mailing list