summaryrefslogtreecommitdiffstats
path: root/drivers/cpufreq/pmac64-cpufreq.c
diff options
context:
space:
mode:
authorLucas Stach <l.stach@pengutronix.de>2014-09-26 15:33:46 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2014-10-03 15:40:55 +0200
commitf9739d27059d8fd7b64096ea7251608628b5bd30 (patch)
tree6ffd2145d88465afd95bb8b66449add8a5f21d29 /drivers/cpufreq/pmac64-cpufreq.c
parentcpufreq: cpu0: rename driver and internals to 'cpufreq_dt' (diff)
downloadlinux-f9739d27059d8fd7b64096ea7251608628b5bd30.tar.xz
linux-f9739d27059d8fd7b64096ea7251608628b5bd30.zip
cpufreq: cpufreq-dt: fix potential double put of cpu OF node
If cpufreq_generic_init() fails we jump into the resource cleanup path which contains a of_node_put() call. Another instance of this has already been called at that time resulting a double decrement of the refcount. Fix this by calling of_node_put() only after we are sure that nothing has gone wrong. Fixes: d2f31f1da54f "cpufreq: cpu0: Move per-cluster initialization code to ->init()" Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/cpufreq/pmac64-cpufreq.c')
0 files changed, 0 insertions, 0 deletions