Files
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
..
2025-11-07 17:19:56 -03:00
2025-04-10 14:39:21 +02:00
2024-06-21 11:41:46 +01: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