hc
2024-05-10 cde9070d9970eef1f7ec2360586c802a16230ad8
kernel/drivers/watchdog/sbsa_gwdt.c
....@@ -121,6 +121,7 @@
121121 struct sbsa_gwdt *gwdt = watchdog_get_drvdata(wdd);
122122
123123 wdd->timeout = timeout;
124
+ timeout = clamp_t(unsigned int, timeout, 1, wdd->max_hw_heartbeat_ms / 1000);
124125
125126 if (action)
126127 writel(gwdt->clk * timeout,