kernel/drivers/watchdog/sbsa_gwdt.c
.. .. @@ -121,6 +121,7 @@ 121 121 struct sbsa_gwdt *gwdt = watchdog_get_drvdata(wdd); 122 122 123 123 wdd->timeout = timeout; 124 + timeout = clamp_t(unsigned int, timeout, 1, wdd->max_hw_heartbeat_ms / 1000);124 125 125 126 if (action) 126 127 writel(gwdt->clk * timeout,