Re: [PATCH] clocksource: cadence_ttc: fix memory leak in ttc_setup_clockevent

From: Michal Simek
Date: Wed Mar 13 2019 - 09:56:09 EST


On 09. 03. 19 15:24, Daniel Lezcano wrote:
>
> Hi Yue,
>
> I appreciate the fix but usually we add a rollback for all the
> operations done in the init function.
>
> Please, migrate the init function to the timer-of API, so the rollback
> will be automatically handled.
>
> Example here:
>
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/clocksource/timer-sprd.c#n197

I have put a record to Xilinx database to take a look at it when we have
time.

Thanks,
Michal