Re: [PATCH 2/3] rtc: sun6i: fix memleaks and add error-path in sun6i_rtc_clk_init()

2017-07-23 Thread Chen-Yu Tsai
On Wed, Jul 12, 2017 at 6:59 PM, Alexey Klimov wrote: > The memory allocated for rtc and clk_data will never be freed in > sun6i_rtc_clk_init() in case of error and return. This patch adds > required error path with memory freeing. > > Fixes: 847b8bf62eb4 ("rtc: sun6i: Expose the 32kHz oscillator"

[PATCH 2/3] rtc: sun6i: fix memleaks and add error-path in sun6i_rtc_clk_init()

2017-07-12 Thread Alexey Klimov
The memory allocated for rtc and clk_data will never be freed in sun6i_rtc_clk_init() in case of error and return. This patch adds required error path with memory freeing. Fixes: 847b8bf62eb4 ("rtc: sun6i: Expose the 32kHz oscillator") Cc: Maxime Ripard Cc: Rob Herring Signed-off-by: Alexey Klim