diff options
author | Yu Kuai <yukuai3@huawei.com> | 2020-11-16 21:51:23 +0800 |
---|---|---|
committer | Daniel Lezcano <daniel.lezcano@linaro.org> | 2020-12-03 19:16:26 +0100 |
commit | eee422c46e6840a81c9db18a497b74387a557b29 (patch) | |
tree | 2f9cad1f62355180a53dadbbb407ab1045133f95 /drivers/clocksource/timer-orion.c | |
parent | b7c0fed5ccf2c5cb4bb43ddc6b1625f042a83d0a (diff) |
clocksource/drivers/cadence_ttc: Fix memory leak in ttc_setup_clockevent()
If clk_notifier_register() failed, ttc_setup_clockevent() will return
without freeing 'ttcce', which will leak memory.
Fixes: 70504f311d4b ("clocksource/drivers/cadence_ttc: Convert init function to return error")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20201116135123.2164033-1-yukuai3@huawei.com
Diffstat (limited to 'drivers/clocksource/timer-orion.c')
0 files changed, 0 insertions, 0 deletions