aboutsummaryrefslogtreecommitdiff
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorPeng Fan <peng.fan@nxp.com>2023-07-19 09:16:36 +0800
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2023-08-22 21:22:02 +0200
commitf96801f0cfcefc0a16b146596577c53c75ee9773 (patch)
treea3ee4724b389a0148678c4d6a94536eae0db544e /scripts/generate_rust_analyzer.py
parentb616959a59eed098fe34aa156d96c37880feabc6 (diff)
thermal/of: Fix potential uninitialized value access
If of_parse_phandle_with_args() called from __thermal_of_bind() or __thermal_of_unbind() fails, cooling_spec.np will not be initialized, so move the of_node_put() calls below the respective return value checks to avoid dereferencing an uninitialized pointer. Fixes: 3fd6d6e2b4e8 ("thermal/of: Rework the thermal device tree initialization") Signed-off-by: Peng Fan <peng.fan@nxp.com> [ rjw: Subject and changelog edits ] Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions