]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Feb 2025 13:01:40 +0000 (14:01 +0100)
commit56e6976793c0fcf1638aa534242408ab4e4ca705
treef3985a41829f3a70b7aa405f9420bb9f7e3792a1
parent698d93debbc5b40f7c70bdb9dc355fd1bb78ada6
cpufreq/amd-pstate: Fix cpufreq_policy ref counting

[ Upstream commit 3ace20038e19f23fe73259513f1f08d4bf1a3c83 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/cpufreq/amd-pstate.c