Re: [PATCH] ti: fix possible memory leak in _ti_omap4_clkctrl_setup

From: Hangyu Hua
Date: Thu Oct 26 2023 - 22:13:20 EST


On 26/10/2023 20:18, Andy Shevchenko wrote:
On Wed, Oct 25, 2023 at 05:07:41PM +0800, Hangyu Hua wrote:
kstrndup and kstrdup_and_replace in clkctrl_get_name can perform

kstrndup()
kstrdup_and_replace()
clkctrl_get_name()


I see. I will send a v2 later.

Thanks,
Hangyu

dynamic memory allocation. So clkctrl_name needs to be freed when
provider->clkdm_name is NULL.