]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
5.4-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 9 Nov 2024 11:21:00 +0000 (12:21 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 9 Nov 2024 11:21:00 +0000 (12:21 +0100)
added patches:
media-stb0899_algo-initialize-cfr-before-using-it.patch

queue-5.4/media-stb0899_algo-initialize-cfr-before-using-it.patch [new file with mode: 0644]
queue-5.4/series

diff --git a/queue-5.4/media-stb0899_algo-initialize-cfr-before-using-it.patch b/queue-5.4/media-stb0899_algo-initialize-cfr-before-using-it.patch
new file mode 100644 (file)
index 0000000..ff5b6de
--- /dev/null
@@ -0,0 +1,34 @@
+From 2d861977e7314f00bf27d0db17c11ff5e85e609a Mon Sep 17 00:00:00 2001
+From: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
+Date: Tue, 15 Oct 2024 13:29:43 +0200
+Subject: media: stb0899_algo: initialize cfr before using it
+
+From: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
+
+commit 2d861977e7314f00bf27d0db17c11ff5e85e609a upstream.
+
+The loop at stb0899_search_carrier() starts with a random
+value for cfr, as reported by Coverity.
+
+Initialize it to zero, just like stb0899_dvbs_algo() to ensure
+that carrier search won't bail out.
+
+Fixes: 8bd135bab91f ("V4L/DVB (9375): Add STB0899 support")
+Cc: stable@vger.kernel.org
+Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ drivers/media/dvb-frontends/stb0899_algo.c |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/drivers/media/dvb-frontends/stb0899_algo.c
++++ b/drivers/media/dvb-frontends/stb0899_algo.c
+@@ -269,7 +269,7 @@ static enum stb0899_status stb0899_searc
+       short int derot_freq = 0, last_derot_freq = 0, derot_limit, next_loop = 3;
+       int index = 0;
+-      u8 cfr[2];
++      u8 cfr[2] = {0};
+       u8 reg;
+       internal->status = NOCARRIER;
index 19a32e769043d60333107a0448ff64a49d6dc0f2..718eb4a9ed2b6211fe9b34bc7c1775f0479196f3 100644 (file)
@@ -13,3 +13,4 @@ net-enetc-set-mac-address-to-the-vf-net_device.patch
 sctp-properly-validate-chunk-size-in-sctp_sf_ootb.patch
 can-c_can-fix-rx-tx-_errors-statistics.patch
 net-hns3-fix-kernel-crash-when-uninstalling-driver.patch
+media-stb0899_algo-initialize-cfr-before-using-it.patch