[PATCH] [v3] rtc: sun6i: Fix memleak in sun6i_rtc_clk_init

Maxime Ripard maxime at cerno.tech
Wed Oct 28 13:44:35 EDT 2020


On Tue, Oct 20, 2020 at 02:12:26PM +0800, Dinghao Liu wrote:
> When clk_hw_register_fixed_rate_with_accuracy() fails,
> clk_data should be freed. It's the same for the subsequent
> two error paths, but we should also unregister the already
> registered clocks in them.
> 
> Signed-off-by: Dinghao Liu <dinghao.liu at zju.edu.cn>

Acked-by: Maxime Ripard <mripard at kernel.org>

Maxime



More information about the linux-arm-kernel mailing list