]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
6.1-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 Dec 2023 13:27:10 +0000 (22:27 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 Dec 2023 13:27:10 +0000 (22:27 +0900)
added patches:
octeontx2-af-initialize-cntr_val-to-fix-uninitialized-symbol-error.patch

queue-6.1/octeontx2-af-initialize-cntr_val-to-fix-uninitialized-symbol-error.patch [new file with mode: 0644]
queue-6.1/series

diff --git a/queue-6.1/octeontx2-af-initialize-cntr_val-to-fix-uninitialized-symbol-error.patch b/queue-6.1/octeontx2-af-initialize-cntr_val-to-fix-uninitialized-symbol-error.patch
new file mode 100644 (file)
index 0000000..e735c04
--- /dev/null
@@ -0,0 +1,42 @@
+From 222a6c42e9ef131fd20463bf95d7ce7b39bee2f8 Mon Sep 17 00:00:00 2001
+From: Suman Ghosh <sumang@marvell.com>
+Date: Thu, 27 Jul 2023 22:01:01 +0530
+Subject: octeontx2-af: Initialize 'cntr_val' to fix uninitialized symbol error
+
+From: Suman Ghosh <sumang@marvell.com>
+
+commit 222a6c42e9ef131fd20463bf95d7ce7b39bee2f8 upstream.
+
+drivers/net/ethernet/marvell/octeontx2/nic/otx2_tc.c:860
+otx2_tc_update_mcam_table_del_req()
+error: uninitialized symbol 'cntr_val'.
+
+Fixes: ec87f05402f5 ("octeontx2-af: Install TC filter rules in hardware based on priority")
+Signed-off-by: Suman Ghosh <sumang@marvell.com>
+Link: https://lore.kernel.org/r/20230727163101.2793453-1-sumang@marvell.com
+Signed-off-by: Jakub Kicinski <kuba@kernel.org>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ drivers/net/ethernet/marvell/octeontx2/nic/otx2_tc.c |    4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+--- a/drivers/net/ethernet/marvell/octeontx2/nic/otx2_tc.c
++++ b/drivers/net/ethernet/marvell/octeontx2/nic/otx2_tc.c
+@@ -842,7 +842,7 @@ static int otx2_tc_update_mcam_table_del
+       struct list_head *pos, *n;
+       struct otx2_tc_flow *tmp;
+       int i = 0, index = 0;
+-      u16 cntr_val;
++      u16 cntr_val = 0;
+       /* Find and delete the entry from the list and re-install
+        * all the entries from beginning to the index of the
+@@ -881,7 +881,7 @@ static int otx2_tc_update_mcam_table_add
+       int mcam_idx = flow_cfg->max_flows - flow_cfg->nr_flows - 1;
+       struct otx2_tc_flow *tmp;
+       int list_idx, i;
+-      u16 cntr_val;
++      u16 cntr_val = 0;
+       /* Find the index of the entry(list_idx) whose priority
+        * is greater than the new entry and re-install all
index 7b6765e093a1396839b87215f3bbcc471de9557f..a18d0dd0a36f91b74e1f629c74e0a6464250fabd 100644 (file)
@@ -77,6 +77,7 @@ net-ravb-stop-dma-in-case-of-failures-on-ravb_open.patch
 net-ravb-keep-reverse-order-of-operations-in-ravb_re.patch
 kvm-x86-fix-lapic-timer-interrupt-lost-after-loading.patch
 pci-lengthen-reset-delay-for-videopropulsion-torrent.patch
+octeontx2-af-initialize-cntr_val-to-fix-uninitialized-symbol-error.patch
 pci-qcom-ep-add-dedicated-callback-for-writing-to-db.patch
 fbdev-stifb-make-the-sti-next-font-pointer-a-32-bit-.patch
 spi-fix-null-dereference-on-suspend.patch