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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.




[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux