diff options
author | Dinghao Liu <dinghao.liu@zju.edu.cn> | 2020-10-20 14:12:26 +0800 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2020-10-28 18:51:56 +0100 |
commit | 28d211919e422f58c1e6c900e5810eee4f1ce4c8 (patch) | |
tree | 312fce5d82ce55d6131cd2afec258e9a759267d6 /drivers/rtc/class.c | |
parent | ba1c30bf3f2536f248d262c6f257b5a787305991 (diff) | |
download | linux-28d211919e422f58c1e6c900e5810eee4f1ce4c8.tar.bz2 |
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
Diffstat (limited to 'drivers/rtc/class.c')
0 files changed, 0 insertions, 0 deletions