Re: [PATCH] clocksource/drivers: Fix memory leak in ttc_setup_clockevent

2019-10-22 Thread Navid Emamdoost
Thanks for the feedback, I updated this patch and sent v2. Also, I submitted a patch to fix the error handling path in ttc_setup_clocksource(). Here is the link to it: https://lore.kernel.org/patchwork/patch/1143242/ On Tue, Oct 22, 2019 at 3:51 AM Michal Simek wrote: > > On 22. 10. 19 10:26,

Re: [PATCH] clocksource/drivers: Fix memory leak in ttc_setup_clockevent

2019-10-22 Thread Michal Simek
On 22. 10. 19 10:26, Markus Elfring wrote: >> In the impelementation of ttc_setup_clockevent() the allocated memory >> for ttcce should be released if clk_notifier_register() fails. > > * Please avoid the copying of typos from previous change descriptions. > > * Under which circumstances will an

Re: [PATCH] clocksource/drivers: Fix memory leak in ttc_setup_clockevent

2019-10-22 Thread Markus Elfring
> In the impelementation of ttc_setup_clockevent() the allocated memory > for ttcce should be released if clk_notifier_register() fails. * Please avoid the copying of typos from previous change descriptions. * Under which circumstances will an “imperative mood” matter for you here?

[PATCH] clocksource/drivers: Fix memory leak in ttc_setup_clockevent

2019-10-21 Thread Navid Emamdoost
In the impelementation of ttc_setup_clockevent() the allocated memory for ttcce should be released if clk_notifier_register() fails. Fixes: 70504f311d4b ("clocksource/drivers/cadence_ttc: Convert init function to return error") Signed-off-by: Navid Emamdoost ---