diff options
author | 2024-05-23 23:25:00 +0200 | |
---|---|---|
committer | 2024-05-28 11:39:06 +0530 | |
commit | 9e697efe5f99ed793ec1d23a1c3467d7dc5863db (patch) | |
tree | 23b8acb544003d30f86f9fa2b76f4c15356aac25 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | cpufreq: qcom-nvmem: fix memory leaks in probe error paths (diff) | |
download | wireguard-linux-9e697efe5f99ed793ec1d23a1c3467d7dc5863db.tar.xz wireguard-linux-9e697efe5f99ed793ec1d23a1c3467d7dc5863db.zip |
cpufreq: qcom-nvmem: eliminate uses of of_node_put()
Make use of the __free() macro to automate memory deallocation when
the existing device nodes get out of scope, removing the need for
of_node_put() and therefore increasing code safety if more error paths
are added to the driver, which could miss the required of_node_put()
as it already occurred with commit '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 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions