Home
last modified time | relevance | path

Searched hist:"28 d211919e422f58c1e6c900e5810eee4f1ce4c8" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/rtc/
H A Drtc-sun6i.cdiff 28d211919e422f58c1e6c900e5810eee4f1ce4c8 Tue Oct 20 01:12:26 CDT 2020 Dinghao Liu <dinghao.liu@zju.edu.cn> rtc: sun6i: Fix memleak in sun6i_rtc_clk_init

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@zju.edu.cn>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20201020061226.6572-1-dinghao.liu@zju.edu.cn