summaryrefslogtreecommitdiff
path: root/contrib/examples/httpd/https_example
diff options
context:
space:
mode:
authorJuuso Rinta <[email protected]>2026-05-04 12:34:34 +0300
committerStefan Roese <[email protected]>2026-06-09 11:51:19 +0200
commit1a489a1a4375237ce1cabf7f95e2c57506350e7f (patch)
treed6ed9e9b91324d9e4206ac3a51e5323b36c6c0db /contrib/examples/httpd/https_example
parentd62801d09441acfebe2c8b7da66de70e6e5ad492 (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