diff options
| author | Rafael J. Wysocki <[email protected]> | 2024-10-03 12:27:28 +0000 |
|---|---|---|
| committer | Rafael J. Wysocki <[email protected]> | 2024-10-04 17:05:08 +0000 |
| commit | 827a07525c099f54d3b15110408824541ec66b3c (patch) | |
| tree | 683305943d2aabbda1b3f8b20184b6196212be65 /rust/helpers/workqueue.c | |
| parent | thermal: core: Reference count the zone in thermal_zone_get_by_id() (diff) | |
| download | kernel-827a07525c099f54d3b15110408824541ec66b3c.tar.gz kernel-827a07525c099f54d3b15110408824541ec66b3c.zip | |
thermal: core: Free tzp copy along with the thermal zone
The object pointed to by tz->tzp may still be accessed after being
freed in thermal_zone_device_unregister(), so move the freeing of it
to the point after the removal completion has been completed at which
it cannot be accessed any more.
Fixes: 3d439b1a2ad3 ("thermal/core: Alloc-copy-free the thermal zone parameters structure")
Cc: 6.8+ <[email protected]> # 6.8+
Signed-off-by: Rafael J. Wysocki <[email protected]>
Reviewed-by: Lukasz Luba <[email protected]>
Link: https://patch.msgid.link/[email protected]
Diffstat (limited to 'rust/helpers/workqueue.c')
0 files changed, 0 insertions, 0 deletions
