Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 05865635 authored by Yu Kuai's avatar Yu Kuai Committed by Greg Kroah-Hartman
Browse files

clocksource/drivers/cadence_ttc: Fix memory leak in ttc_setup_clockevent()



[ Upstream commit eee422c46e6840a81c9db18a497b74387a557b29 ]

If clk_notifier_register() failed, ttc_setup_clockevent() will return
without freeing 'ttcce', which will leak memory.

Fixes: 70504f31 ("clocksource/drivers/cadence_ttc: Convert init function to return error")
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarYu Kuai <yukuai3@huawei.com>
Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20201116135123.2164033-1-yukuai3@huawei.com


Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 062f9718
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment