Home
last modified time | relevance | path

Searched hist:e3fd01a810537badc7fdaf67220159f32f337a32 (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/cpufreq/
H A Dqcom-cpufreq-nvmem.cdiff e3fd01a810537badc7fdaf67220159f32f337a32 Thu May 23 16:24:59 CDT 2024 Javier Carrasco <javier.carrasco.cruz@gmail.com> cpufreq: qcom-nvmem: fix memory leaks in probe error paths

[ Upstream commit d01c84b97f19f1137211e90b0a910289a560019e ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>