Skip to content

Commit 330415e

Browse files
liuxp11Wim Van Sebroeck
authored andcommitted
watchdog: wdat_wdt: Stop watchdog when uninstalling module
Test shows that wachdog still reboots machine after the module is removed. Use watchdog_stop_on_unregister to stop the watchdog on removing. Signed-off-by: Liu Xinpeng <liuxp11@chinatelecom.cn> eviewed-by: Guenter Roeck <linux@roeck-us.net> Link: https://lore.kernel.org/r/1650984810-6247-4-git-send-email-liuxp11@chinatelecom.cn Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
1 parent 27fdf84 commit 330415e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/watchdog/wdat_wdt.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,7 @@ static int wdat_wdt_probe(struct platform_device *pdev)
463463

464464
watchdog_set_nowayout(&wdat->wdd, nowayout);
465465
watchdog_stop_on_reboot(&wdat->wdd);
466+
watchdog_stop_on_unregister(&wdat->wdd);
466467
return devm_watchdog_register_device(dev, &wdat->wdd);
467468
}
468469

0 commit comments

Comments
 (0)