aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorCurtis Klein <[email protected]>2021-06-26 23:47:45 +0000
committerWim Van Sebroeck <[email protected]>2021-08-22 08:28:07 +0000
commitcf6ea9542372a966544d947c17c94048d4883325 (patch)
tree4ae7eaa567604934cb771e9822fb8bc16ddf1150 /net/unix/af_unix.c
parentwatchdog: bd70528 drop bd70528 support (diff)
downloadkernel-cf6ea9542372a966544d947c17c94048d4883325.tar.gz
kernel-cf6ea9542372a966544d947c17c94048d4883325.zip
watchdog: only run driver set_pretimeout op if device supports it
Some watchdog devices might conditionally support pretimeouts (e.g. if an interrupt is exposed for the device) but some watchdog drivers might still define the set_pretimeout operation (e.g. the mtk_wdt driver) and indicate support at runtime through the WDIOF_PRETIMEOUT flag. If the kernel is compiled with CONFIG_WATCHDOG_HRTIMER_PRETIMEOUT enabled, watchdog_set_pretimeout would run the driver specific set_pretimeout even if WDIOF_PRETIMEOUT is not set which might have unintended consequences. So this change checks that the device flags and only runs the driver operation if pretimeouts are supported. Signed-off-by: Curtis Klein <[email protected]> Reviewed-by: Guenter Roeck <[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 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions