Skip to content

Commit

Permalink
Merge branch 'pm-cpufreq-fixes'
Browse files Browse the repository at this point in the history
* pm-cpufreq-fixes:
  cpufreq: scmi: Fix use-after-free in scmi_cpufreq_exit()
  • Loading branch information
Rafael J. Wysocki committed Feb 22, 2019
2 parents 74fb448 + 8cbd468 commit 5b317cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/cpufreq/scmi-cpufreq.c
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,8 @@ static int scmi_cpufreq_exit(struct cpufreq_policy *policy)

cpufreq_cooling_unregister(priv->cdev);
dev_pm_opp_free_cpufreq_table(priv->cpu_dev, &policy->freq_table);
kfree(priv);
dev_pm_opp_remove_all_dynamic(priv->cpu_dev);
kfree(priv);

return 0;
}
Expand Down

0 comments on commit 5b317cb

Please sign in to comment.