diff options
author | Dan Carpenter <dan.carpenter@linaro.org> | 2025-05-27 08:45:21 +0300 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2025-05-27 15:26:50 +0200 |
commit | 39cdf87a97fdab067e82138ad4611b764f3eae15 (patch) | |
tree | efdd9a2cd386c4a07f3f9e8dcf525f47ed0ec991 /scripts/lib/kdoc/kdoc_re.py | |
parent | 5836ebeb4a2b7e25305fab9170060d5f3de1ff30 (diff) |
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: 5836ebeb4a2b ("cpuidle: psci: Avoid initializing faux device if no DT idle states are present")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://patch.msgid.link/aDVRcfU8O8sez1x7@stanley.mountain
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_re.py')
0 files changed, 0 insertions, 0 deletions