Manuel Fombuena
0848ab8c96
leds: leds-st1202: fix NULL pointer access on race condition
...
st1202_dt_init() calls devm_led_classdev_register_ext() before the
internal data structures are properly setup, so the leds become visible
to user space while being partially initialized, leading to a window
where trying to access them causes a NULL pointer access.
This change moves devm_led_classdev_register_ext() to the last thing to
happen during initialization to eliminate it.
Signed-off-by: Manuel Fombuena <fombuena@outlook.com >
2025-11-07 17:19:56 -03:00
..
2024-06-21 11:57:15 +01:00
2025-10-15 11:59:56 +02:00
2025-05-29 11:02:36 +02:00
2024-06-21 11:57:14 +01:00
2025-08-20 18:30:13 +02:00
2025-11-07 17:19:56 -03:00
2025-07-06 11:01:32 +02:00
2024-12-14 20:04:01 +01:00
2025-04-10 14:39:21 +02:00
2024-06-26 16:56:07 +01:00
2024-08-22 14:23:03 +01:00
2023-11-01 11:28:35 +00:00
2024-06-21 11:57:11 +01:00
2024-04-12 09:47:15 +01:00
2024-04-11 17:34:57 +01:00
2024-08-22 14:23:03 +01:00
2024-08-22 14:23:04 +01:00
2024-08-22 14:23:05 +01:00
2024-08-01 13:40:07 +01:00
2024-06-21 11:57:11 +01:00
2024-08-01 13:40:02 +01:00
2025-02-08 09:57:11 +01:00
2023-11-01 11:28:35 +00:00
2024-06-21 11:41:46 +01:00
2023-11-01 11:28:35 +00:00
2023-11-01 11:28:35 +00:00
2023-11-01 11:28:28 +00:00
2024-03-07 08:45:31 +00:00
2024-08-23 08:40:43 +01:00
2024-08-22 14:23:06 +01:00
2024-08-01 13:40:08 +01:00
2024-06-21 11:57:11 +01:00
2024-06-21 11:57:11 +01:00
2023-11-01 11:28:35 +00:00
2024-06-21 11:57:11 +01:00
2023-11-01 11:29:02 +00:00
2024-06-21 11:57:11 +01:00
2025-08-20 18:30:43 +02:00
2025-10-15 11:59:58 +02:00
2024-08-22 14:48:24 +01:00
2024-06-21 11:57:11 +01:00
2024-06-21 11:57:11 +01:00
2024-07-11 12:46:25 +01:00
2024-07-11 12:46:25 +01:00
2024-07-11 12:46:25 +01:00
2024-07-12 08:32:37 +01:00
2024-06-26 17:08:31 +01:00
2025-02-17 10:05:02 +01:00
2024-12-05 14:02:10 +01:00
2024-08-22 14:23:07 +01:00
2024-03-07 08:48:16 +00:00
2024-04-11 17:35:18 +01:00
2024-08-22 14:23:08 +01:00
2025-02-08 09:57:05 +01:00
2024-04-11 17:35:13 +01:00
2023-11-01 11:28:55 +00:00
2024-03-07 08:48:06 +00:00
2024-08-16 17:01:19 +01:00
2024-08-30 09:01:08 +01:00
2024-06-26 16:56:11 +01:00
2024-05-02 18:02:01 +01:00
2023-11-01 11:28:35 +00:00
2023-11-01 11:28:35 +00:00
2024-08-22 14:23:10 +01:00
2024-06-26 16:56:07 +01:00
2024-06-21 11:57:16 +01:00
2025-11-07 17:19:56 -03:00
2024-08-22 11:39:47 +01:00
2024-03-06 13:07:39 -08:00
2023-12-13 11:28:26 +00:00
2023-12-13 11:28:41 +00:00
2024-06-26 16:56:09 +01:00
2024-08-30 09:05:08 +01:00
2023-11-01 11:28:35 +00:00
2023-11-01 11:28:35 +00:00
2024-06-21 11:41:39 +01:00
2025-11-07 17:19:56 -03:00
2024-09-27 08:18:43 -07:00