diff options
| author | Juuso Rinta <[email protected]> | 2026-05-04 12:34:34 +0300 |
|---|---|---|
| committer | Stefan Roese <[email protected]> | 2026-06-09 11:51:19 +0200 |
| commit | 1a489a1a4375237ce1cabf7f95e2c57506350e7f (patch) | |
| tree | d6ed9e9b91324d9e4206ac3a51e5323b36c6c0db /contrib/examples/httpd/https_example | |
| parent | d62801d09441acfebe2c8b7da66de70e6e5ad492 (diff) | |
watchdog: sbsa_gwdt: clamp WOR value to hw max
The WOR register is 32 bits, so any tick count exceeding U32_MAX is
truncated by writel(). A large requested timeout can wrap to a small
value causing the watchdog to fire sooner than requested.
Clamp the calculated value to U32_MAX prior to writing the register so
over-large requests will be set to the maximum timeout value.
Found by code review.
Signed-off-by: Juuso Rinta <[email protected]>
Reviewed-by: Stefan Roese <[email protected]>
Diffstat (limited to 'contrib/examples/httpd/https_example')
0 files changed, 0 insertions, 0 deletions
