Message ID | 20240910014409.1052185-2-koichiro.den@canonical.com |
---|---|
State | New |
Headers | show |
Series | [SRU,F,1/1] watchdog: cpu5wdt.c: Fix use-after-free bug caused by cpu5wdt_trigger | expand |
diff --git a/drivers/watchdog/cpu5wdt.c b/drivers/watchdog/cpu5wdt.c index d6d53014cb68..02dd22114437 100644 --- a/drivers/watchdog/cpu5wdt.c +++ b/drivers/watchdog/cpu5wdt.c @@ -251,7 +251,7 @@ static void cpu5wdt_exit(void) if (cpu5wdt_device.queue) { cpu5wdt_device.queue = 0; wait_for_completion(&cpu5wdt_device.stop); - del_timer(&cpu5wdt_device.timer); + timer_delete_sync(&cpu5wdt_device.timer); } misc_deregister(&cpu5wdt_misc);