summaryrefslogtreecommitdiff
path: root/drivers/rtc/rtc-sc27xx.c
diff options
context:
space:
mode:
authorDinghao Liu <dinghao.liu@zju.edu.cn>2020-10-20 14:12:26 +0800
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2020-10-28 18:51:56 +0100
commit28d211919e422f58c1e6c900e5810eee4f1ce4c8 (patch)
tree312fce5d82ce55d6131cd2afec258e9a759267d6 /drivers/rtc/rtc-sc27xx.c
parentba1c30bf3f2536f248d262c6f257b5a787305991 (diff)
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/rtc-sc27xx.c')
0 files changed, 0 insertions, 0 deletions