Re: [PATCH] cpufreq/pasemi: fix an use-after-free inpas_cpufreq_cpu_init()

wen.yang99 at zte.com.cn wen.yang99 at zte.com.cn
Mon Jul 8 17:03:57 AEST 2019


> > The cpu variable is still being used in the of_get_property() call
> > after the of_node_put() call, which may result in use-after-free.
> >
> > Fixes: a9acc26b75f ("cpufreq/pasemi: fix possible object reference leak")
> > Signed-off-by: Wen Yang <wen.yang99 at zte.com.cn>
> > Cc: "Rafael J. Wysocki" <rjw at rjwysocki.net>
> > Cc: Viresh Kumar <viresh.kumar at linaro.org>
> > Cc: linuxppc-dev at lists.ozlabs.org
> > Cc: linux-pm at vger.kernel.org
> > Cc: linux-kernel at vger.kernel.org
> > ---
> >  drivers/cpufreq/pasemi-cpufreq.c | 10 ++++++----
> >  1 file changed, 6 insertions(+), 4 deletions(-)
> 
> I will suggest some changes here.

Hello viresh, thank you for your comments.
We will make changes as soon as possible.

--
Thanks and regards,
Wen


More information about the Linuxppc-dev mailing list