diff options
author | Javier Carrasco <javier.carrasco.cruz@gmail.com> | 2024-05-23 23:24:59 +0200 |
---|---|---|
committer | Viresh Kumar <viresh.kumar@linaro.org> | 2024-05-28 11:39:06 +0530 |
commit | d01c84b97f19f1137211e90b0a910289a560019e (patch) | |
tree | e17d5ae32e7b93579e5abf14a90f6c2db92a8c54 /drivers/cpufreq/cppc_cpufreq.c | |
parent | 074cffb5020ddcaa5fafcc55655e5da6ebe8c831 (diff) | |
download | linux-d01c84b97f19f1137211e90b0a910289a560019e.tar.gz linux-d01c84b97f19f1137211e90b0a910289a560019e.tar.bz2 linux-d01c84b97f19f1137211e90b0a910289a560019e.zip |
cpufreq: qcom-nvmem: fix memory leaks in probe error paths
The code refactoring added new error paths between the np device node
allocation and the call to of_node_put(), which leads to memory leaks if
any of those errors occur.
Add the missing of_node_put() in the error paths that require it.
Cc: stable@vger.kernel.org
Fixes: 57f2f8b4aa0c ("cpufreq: qcom: Refactor the driver to make it easier to extend")
Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Diffstat (limited to 'drivers/cpufreq/cppc_cpufreq.c')
0 files changed, 0 insertions, 0 deletions