mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
Make sure to disable the watchdog if we cannot honour the timeout.
This commit is contained in:
parent
278445ba35
commit
3d6e5ccb06
1 changed files with 2 additions and 3 deletions
|
|
@ -510,10 +510,9 @@ watchdog_config(void *unused __unused, u_int cmd, int *err)
|
|||
{
|
||||
u_int u;
|
||||
|
||||
if (cmd) {
|
||||
u = cmd & WD_INTERVAL;
|
||||
if (cmd && u >= WD_TO_1SEC) {
|
||||
u = cmd & WD_INTERVAL;
|
||||
if (u < WD_TO_1SEC)
|
||||
return;
|
||||
watchdog_ticks = (1 << (u - WD_TO_1SEC)) * hz;
|
||||
watchdog_enabled = 1;
|
||||
*err = 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue