diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2016-06-27 08:50:13 +0300 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2016-06-28 00:49:44 +0300 |
commit | ca5eda5d3db6026080cff267459625c87c43e9ab (patch) | |
tree | 6cb0519a526314919303e3819ca7b55407b5a64d /drivers/cpufreq/cpufreq.c | |
parent | 5ab666e09541e64ce2fd73411c3b5b9e4ad334b1 (diff) | |
download | linux-ca5eda5d3db6026080cff267459625c87c43e9ab.tar.xz |
cpufreq: dt: call of_node_put() before error out
If of_match_node() fails, this init function bails out without
calling of_node_put().
Also change of_node_put(of_root) to of_node_put(np); both of them
hold the same pointer, but it seems better to call of_node_put()
against the node returned by of_find_node_by_path().
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/cpufreq/cpufreq.c')
0 files changed, 0 insertions, 0 deletions