diff options
| author | Felix Gu <ustc.gu@gmail.com> | 2026-01-24 03:06:40 +0800 |
|---|---|---|
| committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2026-01-28 22:10:34 +0100 |
| commit | a1fe789a96fe47733c133134fd264cb7ca832395 (patch) | |
| tree | d0b1a7b326f4afdb2efcd5a47cff00d178f1b0e9 /rust/alloc/collections/git@git.tavy.me:linux.git | |
| parent | 1e461784c30452ee8e2a00d42f6b3d73ada61521 (diff) | |
thermal/of: Fix reference leak in thermal_of_cm_lookup()
In thermal_of_cm_lookup(), tr_np is obtained via of_parse_phandle(), but
never released.
Use the __free(device_node) cleanup attribute to automatically release
the node and fix the leak.
Fixes: 423de5b5bc5b ("thermal/of: Fix cdev lookup in thermal_of_should_bind()")
Signed-off-by: Felix Gu <ustc.gu@gmail.com>
Reviewed-by: Lukasz Luba <lukasz.luba@arm.com>
[ rjw: Changelog edits ]
Link: https://patch.msgid.link/20260124-thermal_of-v1-1-54d3416948cf@gmail.com
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'rust/alloc/collections/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
