]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
cpufreq: brcmstb-avs-cpufreq: Fix resource leaks in ->remove()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 17 Jan 2021 14:26:44 +0000 (15:26 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Mar 2021 17:22:38 +0000 (18:22 +0100)
commit24cf809170ed7332d4f8ed7d6f6db256d1db9c64
tree4937f99bf726bb533741e091b160e95a6848f24f
parent84ebee915684a8795684954d3a7accc3c5da8d17
cpufreq: brcmstb-avs-cpufreq: Fix resource leaks in ->remove()

[ Upstream commit 3657f729b6fb5f2c0bf693742de2dcd49c572aa1 ]

If 'cpufreq_unregister_driver()' fails, just WARN and continue, so that
other resources are freed.

Fixes: de322e085995 ("cpufreq: brcmstb-avs-cpufreq: AVS CPUfreq driver for Broadcom STB SoCs")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
[ Viresh: Updated Subject ]
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/cpufreq/brcmstb-avs-cpufreq.c