You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since commit 3d439b1 ("thermal/core: Alloc-copy-free the thermal
zone parameters structure"), thermal_zone_device_register() allocates
a copy of the tzp argument and frees it when unregistering, so
thermal_of_zone_register() now ends up leaking its original tzp and
double-freeing the tzp copy. Fix this by locating tzp on stack instead.
Fixes: 3d439b1 ("thermal/core: Alloc-copy-free the thermal zone parameters structure")
Signed-off-by: Ahmad Fatoum <[email protected]>
Acked-by: Daniel Lezcano <[email protected]>
Cc: 6.4+ <[email protected]> # 6.4+: 8bcbb18: thermal: core: constify params in thermal_zone_device_register
Signed-off-by: Rafael J. Wysocki <[email protected]>
0 commit comments