Skip to content
Commit e0a12445 authored by Wen Yang's avatar Wen Yang Committed by Rafael J. Wysocki
Browse files

cpufreq/pasemi: fix use-after-free in pas_cpufreq_cpu_init()



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: a9acc26b ("cpufreq/pasemi: fix possible object reference leak")
Signed-off-by: default avatarWen Yang <wen.yang99@zte.com.cn>
Acked-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 5f9e832c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment