Files
u-boot/drivers/watchdog
Simon Glass 72526f1120 watchdog: Unregister cyclic on device removal
When a watchdog device is destroyed, the cyclic_info embedded in the
device's private data is freed but remains in the global cyclic list.
The subsequent cyclic_unregister_all() call then accesses freed memory,
causing a crash.

Add a pre_remove hook to the watchdog uclass to unregister the cyclic
function before the device is destroyed.

Co-developed-by: Claude <noreply@anthropic.com>
Signed-off-by: Simon Glass <simon.glass@canonical.com>
2025-12-09 05:59:53 -07:00
..
2024-10-04 09:51:39 -03:00