]> git.ipfire.org Git - thirdparty/linux.git/commit
cpufreq/amd-pstate: Fix cpufreq_policy ref counting
authorDhananjay Ugwekar <dhananjay.ugwekar@amd.com>
Wed, 5 Feb 2025 11:25:20 +0000 (11:25 +0000)
committerMario Limonciello <mario.limonciello@amd.com>
Thu, 6 Feb 2025 19:19:36 +0000 (13:19 -0600)
commit3ace20038e19f23fe73259513f1f08d4bf1a3c83
tree63626d1cc25d605f2880938740a0162c7b30034c
parent55db9b73c3a77544efc671d5e796d9674772c330
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: 45722e777fd9 ("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>
drivers/cpufreq/amd-pstate.c