Commit 873eeb3
committed
cpufreq/amd-pstate: Fix cpufreq_policy ref counting
JIRA: https://issues.redhat.com/browse/RHEL-75925
commit 3ace200
Author: Dhananjay Ugwekar <dhananjay.ugwekar@amd.com>
Date: Wed Feb 5 11:25:20 2025 +0000
cpufreq/amd-pstate: Fix cpufreq_policy ref counting
amd_pstate_update_limits() takes a cpufreq_policy reference but doesn't
decrement the refcount in one of the exit paths, fix that.
Fixes: 45722e7 ("cpufreq: amd-pstate: Optimize amd_pstate_update_limits()")
Signed-off-by: Dhananjay Ugwekar <dhananjay.ugwekar@amd.com>
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Link: https://lore.kernel.org/r/20250205112523.201101-10-dhananjay.ugwekar@amd.com
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Steve Best <sbest@redhat.com>1 parent d4bc7f6 commit 873eeb3
1 file changed
+5
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
821 | 821 | | |
822 | 822 | | |
823 | 823 | | |
824 | | - | |
| 824 | + | |
825 | 825 | | |
826 | 826 | | |
827 | 827 | | |
828 | 828 | | |
829 | 829 | | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
830 | 834 | | |
831 | 835 | | |
832 | 836 | | |
833 | 837 | | |
834 | 838 | | |
835 | | - | |
836 | | - | |
837 | | - | |
838 | 839 | | |
839 | 840 | | |
840 | 841 | | |
| |||
0 commit comments