aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gcc-plugins/randomize_layout_plugin.c
diff options
context:
space:
mode:
authorZiyan Fu <[email protected]>2025-04-29 10:25:33 +0000
committerWim Van Sebroeck <[email protected]>2025-06-01 11:16:37 +0000
commit158f9f2f71523bab787f4fa7a7a1f390524350ca (patch)
tree99234cd4bcbadb5c20ff9e1e25b38c00b38e1ba2 /scripts/gcc-plugins/randomize_layout_plugin.c
parentwatchdog: Add driver for Intel OC WDT (diff)
downloadkernel-158f9f2f71523bab787f4fa7a7a1f390524350ca.tar.gz
kernel-158f9f2f71523bab787f4fa7a7a1f390524350ca.zip
watchdog: iTCO_wdt: Update the heartbeat value after clamping timeout
When executing "modprobe iTCO_wdt heartbeat=700", the user-specified 'heartbeat' parameter exceeds the valid range, the driver clamps the timeout to default 30s but fails to update the logged 'heartbeat' value, resulting in misleading log output: iTCO_wdt iTCO_wdt: timeout value out of range, using 30 iTCO_wdt iTCO_wdt: initialized. heartbeat=700 sec (nowayout=0) After validating the range, update the 'heartbeat' value with the clamped timeout value to ensure that log messages accurately reflect the actual runtime parameters. Signed-off-by: Ziyan Fu <[email protected]> Reviewed-by: Wim Van Sebroeck <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Guenter Roeck <[email protected]> Signed-off-by: Wim Van Sebroeck <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/randomize_layout_plugin.c')
0 files changed, 0 insertions, 0 deletions