[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <c967b46b-2093-7a99-5629-79bee7fcdb9e@linaro.org>
Date: Tue, 17 Nov 2020 10:07:43 +0100
From: Daniel Lezcano <daniel.lezcano@...aro.org>
To: Yu Kuai <yukuai3@...wei.com>, michal.simek@...inx.com,
tglx@...utronix.de, soren.brinkmann@...inx.com
Cc: linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
yi.zhang@...wei.com, zhangxiaoxu5@...wei.com
Subject: Re: [PATCH V4] clocksource/drivers/cadence_ttc: fix memory leak in
ttc_setup_clockevent()
On 16/11/2020 14:51, Yu Kuai wrote:
> 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@...wei.com>
> Signed-off-by: Yu Kuai <yukuai3@...wei.com>
> ---
Applied, thanks
--
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs
Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog
Powered by blists - more mailing lists