Searched hist:"9 f42cf54403a42cb092636804d2628d8ecf71e75" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/cpufreq/ |
H A D | qcom-cpufreq-nvmem.c | diff 9f42cf54403a42cb092636804d2628d8ecf71e75 Sat Oct 15 08:04:22 CDT 2022 Fabien Parent <fabien.parent@linaro.org> cpufreq: qcom: fix memory leak in error path
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: a8811ec764f9 ("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>
|