On 16-10-15, 12:50, Saravana Kannan wrote:
In the lines that follow this code we set the per_cpu(cpufreq_cpu_data) to point to the new policy. But if the subsequent cpu->get() fails, we goto out_exit_policy. But that label doesn't clean up the per_cpu(cpufreq_cpu_data). So, I think we need another label to jump to if ->get() fails
We call cpufreq_policy_free() in that case and that does the cleanup you are talking about.