Skip to content
Commit 39cdf87a authored by Dan Carpenter's avatar Dan Carpenter Committed by Rafael J. Wysocki
Browse files

cpuidle: psci: Fix uninitialized variable in dt_idle_state_present()



If the first cpu_node = of_cpu_device_node_get() fails then the cleanup.h
code will try to free "state_node" but it hasn't been initialized yet.
Declare the device_nodes where they are initialized to fix this.

Fixes: 5836ebeb ("cpuidle: psci: Avoid initializing faux device if no DT idle states are present")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@linaro.org>
Link: https://patch.msgid.link/aDVRcfU8O8sez1x7@stanley.mountain


Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 5836ebeb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment