diff options
author | Christophe Jaillet <christophe.jaillet@wanadoo.fr> | 2017-08-19 22:22:46 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2017-08-25 01:43:07 +0200 |
commit | 9a6e91d08e7707baa2f824257342ca7efcb199bc (patch) | |
tree | 9ca86b9e7944ae758dd9df2a80cbb31033ef751c /certs | |
parent | d79d148b6451307fd46e30673ce9de28690c8ced (diff) |
cpufreq: ti: Fix 'of_node_put' being called twice in error handling path
If 'dev_pm_opp_set_supported_hw()' fails, 'opp_data->opp_node' refcount
will be decremented 2 times.
One, just a few lines above, and another one in the error handling path.
Fix it by simply moving the 'of_node_put' call of the normal path.
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'certs')
0 files changed, 0 insertions, 0 deletions