patch 'net/cnxk: fix uninitialized local variable' has been queued to stable release 21.11.1

Kevin Traynor ktraynor at redhat.com
Tue Mar 1 11:42:11 CET 2022


Hi,

FYI, your patch has been queued to stable release 21.11.1

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 03/06/22. So please
shout if anyone has objections.

Also note that after the patch there's a diff of the upstream commit vs the
patch applied to the branch. This will indicate if there was any rebasing
needed to apply to the stable branch. If there were code changes for rebasing
(ie: not only metadata diffs), please double check that the rebase was
correctly done.

Queued patches are on a temporary branch at:
https://github.com/kevintraynor/dpdk-stable

This queued commit can be viewed at:
https://github.com/kevintraynor/dpdk-stable/commit/e4b43ee28c8b470b31deeb0af78561a9c121c5ef

Thanks.

Kevin

---
>From e4b43ee28c8b470b31deeb0af78561a9c121c5ef Mon Sep 17 00:00:00 2001
From: Gowrishankar Muthukrishnan <gmuthukrishn at marvell.com>
Date: Sat, 12 Feb 2022 18:11:00 +0530
Subject: [PATCH] net/cnxk: fix uninitialized local variable

[ upstream commit e8cda505fa7ba143de816b08b0237cff0c8111dd ]

Fix uninitialized local variable as reported by coverity scan.

Coverity issue: 373630
Fixes: 6af19a9d89bf ("net/cnxk: support meter action to flow destroy")

Signed-off-by: Gowrishankar Muthukrishnan <gmuthukrishn at marvell.com>
Acked-by: Jerin Jacob <jerinj at marvell.com>
---
 drivers/net/cnxk/cnxk_ethdev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/cnxk/cnxk_ethdev.c b/drivers/net/cnxk/cnxk_ethdev.c
index 74f625553d..a90c2ae321 100644
--- a/drivers/net/cnxk/cnxk_ethdev.c
+++ b/drivers/net/cnxk/cnxk_ethdev.c
@@ -178,5 +178,5 @@ nix_meter_fini(struct cnxk_eth_dev *dev)
 	struct roc_nix_rq *rq;
 	uint32_t i;
-	int rc;
+	int rc = 0;
 
 	RTE_TAILQ_FOREACH_SAFE(mtr, fms, next, next_mtr) {
-- 
2.34.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2022-03-01 10:41:02.896035799 +0000
+++ 0055-net-cnxk-fix-uninitialized-local-variable.patch	2022-03-01 10:41:01.340244105 +0000
@@ -1 +1 @@
-From e8cda505fa7ba143de816b08b0237cff0c8111dd Mon Sep 17 00:00:00 2001
+From e4b43ee28c8b470b31deeb0af78561a9c121c5ef Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit e8cda505fa7ba143de816b08b0237cff0c8111dd ]
+
@@ -10 +11,0 @@
-Cc: stable at dpdk.org
@@ -19 +20 @@
-index 27751a6956..4ab87e49ea 100644
+index 74f625553d..a90c2ae321 100644



More information about the stable mailing list