Re: [PATCH] cpufreq: sti-cpufreq: fix mem leak in sti_cpufreq_set_opp_info()

2020-10-28 Thread Viresh Kumar
On 12-10-20, 22:01, Frank Lee wrote: > From: Yangtao Li > > Use dev_pm_opp_put_prop_name() to avoid mem leak, which free opp_table. > > Signed-off-by: Yangtao Li > Signed-off-by: Yangtao Li > --- > drivers/cpufreq/sti-cpufreq.c | 7 ++- > 1 file changed, 6 insertions(+), 1 deletion(-) >

[PATCH] cpufreq: sti-cpufreq: fix mem leak in sti_cpufreq_set_opp_info()

2020-10-12 Thread Frank Lee
From: Yangtao Li Use dev_pm_opp_put_prop_name() to avoid mem leak, which free opp_table. Signed-off-by: Yangtao Li Signed-off-by: Yangtao Li --- drivers/cpufreq/sti-cpufreq.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/cpufreq/sti-cpufreq.c b/drivers/cpuf