OrangePi_CM5/drivers/cpufreq
Fabien Parent e55feb31df cpufreq: qcom: fix memory leak in error path
commit 9f42cf54403a42cb092636804d2628d8ecf71e75 upstream.

If for some reason the speedbin length is incorrect, then there is a
memory leak in the error path because we never free the speedbin buffer.
This commit fixes the error path to always free the speedbin buffer.

Cc: v5.7+ <stable@vger.kernel.org> # v5.7+
Fixes: a8811ec764 ("cpufreq: qcom: Add support for krait based socs")
Signed-off-by: Fabien Parent <fabien.parent@linaro.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-10-30 09:41:15 +01:00
..
Kconfig
…
Kconfig.arm
…
Kconfig.powerpc
…
Kconfig.x86
…
Makefile
…
acpi-cpufreq.c
…
amd_freq_sensitivity.c
…
armada-8k-cpufreq.c
…
armada-37xx-cpufreq.c
…
bmips-cpufreq.c
…
brcmstb-avs-cpufreq.c
…
cppc_cpufreq.c
…
cpufreq-dt-platdev.c
…
cpufreq-dt.c
…
cpufreq-dt.h
…
cpufreq-nforce2.c
…
cpufreq.c Revert "cpufreq: Fix possible race in cpufreq online error path" 2022-06-09 10:21:07 +02:00
cpufreq_conservative.c
…
cpufreq_governor.c
…
cpufreq_governor.h
…
cpufreq_governor_attr_set.c
…
cpufreq_ondemand.c
…
cpufreq_ondemand.h
…
cpufreq_performance.c
…
cpufreq_powersave.c
…
cpufreq_stats.c
…
cpufreq_userspace.c
…
davinci-cpufreq.c
…
e_powersaver.c
…
elanfreq.c
…
freq_table.c
…
gx-suspmod.c
…
highbank-cpufreq.c
…
ia64-acpi-cpufreq.c
…
imx-cpufreq-dt.c
…
imx6q-cpufreq.c
…
intel_pstate.c
…
kirkwood-cpufreq.c
…
longhaul.c
…
longhaul.h
…
longrun.c
…
loongson1-cpufreq.c
…
loongson2_cpufreq.c
…
maple-cpufreq.c
…
mediatek-cpufreq.c cpufreq: mediatek: Unregister platform device on exit 2022-06-09 10:21:19 +02:00
mvebu-cpufreq.c
…
omap-cpufreq.c
…
p4-clockmod.c
…
pasemi-cpufreq.c
…
pcc-cpufreq.c
…
pmac32-cpufreq.c cpufreq: pmac32-cpufreq: Fix refcount leak bug 2022-07-21 21:20:14 +02:00
pmac64-cpufreq.c
…
powernow-k6.c
…
powernow-k7.c
…
powernow-k7.h
…
powernow-k8.c
…
powernow-k8.h
…
powernv-cpufreq.c
…
ppc_cbe_cpufreq.c
…
ppc_cbe_cpufreq.h
…
ppc_cbe_cpufreq_pervasive.c
…
ppc_cbe_cpufreq_pmi.c
…
pxa2xx-cpufreq.c
…
pxa3xx-cpufreq.c
…
qcom-cpufreq-hw.c
…
qcom-cpufreq-nvmem.c cpufreq: qcom: fix memory leak in error path 2022-10-30 09:41:15 +01:00
qoriq-cpufreq.c drivers: cpufreq: Add missing of_node_put() in qoriq-cpufreq.c 2022-07-07 17:52:20 +02:00
raspberrypi-cpufreq.c
…
s3c24xx-cpufreq-debugfs.c
…
s3c24xx-cpufreq.c
…
s3c64xx-cpufreq.c
…
s3c2410-cpufreq.c
…
s3c2412-cpufreq.c
…
s3c2416-cpufreq.c
…
s3c2440-cpufreq.c
…
s5pv210-cpufreq.c
…
sa1100-cpufreq.c
…
sa1110-cpufreq.c
…
sc520_freq.c
…
scmi-cpufreq.c
…
scpi-cpufreq.c
…
sfi-cpufreq.c
…
sh-cpufreq.c
…
sparc-us2e-cpufreq.c
…
sparc-us3-cpufreq.c
…
spear-cpufreq.c
…
speedstep-centrino.c
…
speedstep-ich.c
…
speedstep-lib.c
…
speedstep-lib.h
…
speedstep-smi.c
…
sti-cpufreq.c
…
sun50i-cpufreq-nvmem.c cpufreq: fix memory leak in sun50i_cpufreq_nvmem_probe 2022-05-09 09:05:03 +02:00
tango-cpufreq.c
…
tegra20-cpufreq.c
…
tegra124-cpufreq.c
…
tegra186-cpufreq.c
…
tegra194-cpufreq.c
…
ti-cpufreq.c
…
vexpress-spc-cpufreq.c
…