Rafael J. Wysocki
a42a5839f4
thermal: core: Reference count the zone in thermal_zone_get_by_id()
...
There are places in the thermal netlink code where nothing prevents
the thermal zone object from going away while being accessed after it
has been returned by thermal_zone_get_by_id().
To address this, make thermal_zone_get_by_id() get a reference on the
thermal zone device object to be returned with the help of get_device(),
under thermal_list_lock, and adjust all of its callers to this change
with the help of the cleanup.h infrastructure.
Fixes: 1ce50e7d408e ("thermal: core: genetlink support for events/cmd/sampling")
Cc: 6.8+ <stable@vger.kernel.org> # 6.8+
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Lukasz Luba <lukasz.luba@arm.com>
Link: https://patch.msgid.link/6112242.lOV4Wx5bFT@rjwysocki.net
2024-10-04 19:05:08 +02:00
..
2024-09-19 11:12:49 +02:00
2024-09-27 11:42:03 -07:00
2024-09-11 16:02:45 +02:00
2024-09-27 09:05:18 -07:00
2024-09-27 08:18:43 -07:00
2024-09-27 08:48:37 -07:00
2024-09-10 19:52:30 -05:00
2024-09-27 10:27:22 -07:00
2024-09-27 08:18:43 -07:00
2024-09-27 08:48:37 -07:00
2024-09-27 08:18:43 -07:00
2024-09-26 12:00:25 -07:00
2024-09-17 15:27:01 +02:00
2024-09-11 16:03:28 +02:00
2024-09-27 08:18:43 -07:00
2024-09-19 15:55:58 +02:00
2024-09-18 10:49:45 +02:00
2024-09-24 10:46:54 -07:00
2024-09-27 11:42:03 -07:00
2024-09-05 01:23:56 +09:00
2024-09-26 12:00:25 -07:00
2024-09-19 10:18:15 +02:00
2024-09-16 06:36:37 +02:00
2024-09-26 10:13:08 -07:00
2024-09-27 08:18:43 -07:00
2024-09-27 08:18:43 -07:00
2024-09-27 08:18:43 -07:00
2024-09-27 08:18:43 -07:00
2024-09-28 08:47:46 -07:00
2024-09-12 09:04:09 +02:00
2024-09-27 08:18:43 -07:00
2024-09-19 10:18:15 +02:00
2024-09-27 08:18:43 -07:00
2024-09-27 08:18:43 -07:00
2024-09-29 09:47:33 -07:00
2024-09-17 16:51:45 +02:00
2024-09-25 22:30:33 +02:00
2024-09-09 08:36:23 +02:00
2024-09-27 08:18:43 -07:00
2024-09-27 08:18:43 -07:00
2024-09-27 08:18:43 -07:00
2024-09-17 22:20:12 +08:00
2024-09-27 08:18:43 -07:00
2024-09-27 08:18:43 -07:00
2024-09-27 08:18:43 -07:00
2024-09-27 09:11:05 -05:00
2024-09-27 09:12:51 -07:00
2024-09-27 08:18:43 -07:00
2024-09-29 09:22:34 -07:00
2024-09-23 14:17:08 -07:00
2024-09-27 08:18:43 -07:00
2024-09-27 08:18:43 -07:00
2024-09-27 08:18:43 -07:00
2024-09-27 08:18:43 -07:00
2024-09-20 10:51:25 -04:00
2024-09-26 08:43:17 -07:00
2024-09-25 14:56:40 -07:00
2024-09-26 10:13:08 -07:00
2024-09-24 13:02:06 -07:00
2024-09-11 19:02:23 +02:00
2024-09-09 08:53:17 +02:00
2024-09-23 12:47:06 -07:00
2024-09-24 10:59:17 -07:00
2024-09-23 14:05:10 -07:00
2024-09-26 12:00:25 -07:00
2024-09-27 08:18:43 -07:00
2024-09-13 13:41:33 +02:00
2024-09-26 12:00:25 -07:00
2024-09-27 08:18:43 -07:00
2024-09-09 17:44:42 -07:00
2024-09-26 12:00:25 -07:00
2024-09-13 19:08:14 +01:00
2024-09-29 09:53:04 -07:00
2024-09-13 14:09:47 -07:00
2024-09-27 08:18:43 -07:00
2024-09-28 09:11:46 -07:00
2024-09-27 08:18:43 -07:00
2024-09-29 09:22:34 -07:00
2024-09-26 17:25:29 +02:00
2024-09-26 12:00:25 -07:00
2024-09-23 14:00:46 -07:00
2024-09-27 08:18:43 -07:00
2024-09-26 10:13:08 -07:00
2024-09-09 12:22:06 +02:00
2024-10-04 19:05:08 +02:00
2024-09-11 15:17:43 +02:00
2024-09-27 08:18:43 -07:00
2024-09-29 09:22:34 -07:00
2024-09-11 16:02:54 +02:00
2024-09-27 08:18:43 -07:00
2024-09-26 08:43:17 -07:00
2024-09-27 08:18:43 -07:00
2024-09-26 08:43:17 -07:00
2024-09-28 00:42:11 +02:00
2024-09-27 08:18:43 -07:00
2024-09-26 08:43:17 -07:00
2024-09-06 19:18:32 +02:00
2024-09-27 08:18:43 -07:00
2024-09-27 09:55:30 -07:00
2024-09-04 17:24:58 -05:00