Re: [PATCH] rtc: Fix memleak in sun6i_rtc_clk_init

2020-11-14 Thread Alexandre Belloni
Hi, Thank you for the patch. On 14/11/2020 12:18:21+0800, Youling Tang wrote: > When rtc->base or rtc->int_osc or rtc->losc or rtc->ext_losc is NULL, > we should free clk_data and rtc before the function returns to prevent > memleak. > I think this is fixed by 28d211919e422f58c1e6c900e5810eee4f

[PATCH] rtc: Fix memleak in sun6i_rtc_clk_init

2020-11-13 Thread Youling Tang
When rtc->base or rtc->int_osc or rtc->losc or rtc->ext_losc is NULL, we should free clk_data and rtc before the function returns to prevent memleak. Signed-off-by: Youling Tang --- drivers/rtc/rtc-sun6i.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/rtc/rtc