8729fe83b0
[ Upstream commite0a12445d1] 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:a9acc26b75("cpufreq/pasemi: fix possible object reference leak") Signed-off-by: Wen Yang <wen.yang99@zte.com.cn> Acked-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Signed-off-by: Sasha Levin <sashal@kernel.org>