]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
5.4-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 17 Oct 2021 14:57:44 +0000 (16:57 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 17 Oct 2021 14:57:44 +0000 (16:57 +0200)
added patches:
watchdog-orion-use-0-for-unset-heartbeat.patch

queue-5.4/series
queue-5.4/watchdog-orion-use-0-for-unset-heartbeat.patch [new file with mode: 0644]

index 4efea96abaddfcaf2fc47b65ed0af13a7c0a72be..c1774da3f87aa95587511aab8285e9695a975bcf 100644 (file)
@@ -13,3 +13,4 @@ btrfs-unlock-newly-allocated-extent-buffer-after-error.patch
 btrfs-deal-with-errors-when-replaying-dir-entry-during-log-replay.patch
 btrfs-deal-with-errors-when-adding-inode-reference-during-log-replay.patch
 btrfs-check-for-error-when-looking-up-inode-during-dir-entry-replay.patch
+watchdog-orion-use-0-for-unset-heartbeat.patch
diff --git a/queue-5.4/watchdog-orion-use-0-for-unset-heartbeat.patch b/queue-5.4/watchdog-orion-use-0-for-unset-heartbeat.patch
new file mode 100644 (file)
index 0000000..a97c44c
--- /dev/null
@@ -0,0 +1,41 @@
+From bb914088bd8a91c382f54d469367b2e5508b5493 Mon Sep 17 00:00:00 2001
+From: Chris Packham <chris.packham@alliedtelesis.co.nz>
+Date: Fri, 13 Mar 2020 16:13:12 +1300
+Subject: watchdog: orion: use 0 for unset heartbeat
+
+From: Chris Packham <chris.packham@alliedtelesis.co.nz>
+
+commit bb914088bd8a91c382f54d469367b2e5508b5493 upstream.
+
+If the heartbeat module param is not specified we would get an error
+message
+
+  watchdog: f1020300.watchdog: driver supplied timeout (4294967295) out of range
+  watchdog: f1020300.watchdog: falling back to default timeout (171)
+
+This is because we were initialising heartbeat to -1. By removing the
+initialisation (thus letting the C run time initialise it to 0) we
+silence the warning message and the default timeout is still used.
+
+Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
+Reviewed-by: Guenter Roeck <linux@roeck-us.net>
+Link: https://lore.kernel.org/r/20200313031312.1485-1-chris.packham@alliedtelesis.co.nz
+Signed-off-by: Guenter Roeck <linux@roeck-us.net>
+Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
+Signed-off-by: Marek BehĂșn <kabel@kernel.org>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ drivers/watchdog/orion_wdt.c |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/drivers/watchdog/orion_wdt.c
++++ b/drivers/watchdog/orion_wdt.c
+@@ -52,7 +52,7 @@
+ #define WDT_A370_RATIO                (1 << WDT_A370_RATIO_SHIFT)
+ static bool nowayout = WATCHDOG_NOWAYOUT;
+-static int heartbeat = -1;            /* module parameter (seconds) */
++static int heartbeat;         /* module parameter (seconds) */
+ struct orion_watchdog;