[dpdk-stable] patch 'net/ice: fix variable initialization' has been queued to stable release 19.11.3

luca.boccassi at gmail.com luca.boccassi at gmail.com
Tue May 19 15:05:40 CEST 2020


Hi,

FYI, your patch has been queued to stable release 19.11.3

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 05/21/20. 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.

Thanks.

Luca Boccassi

---
>From 39abdde91aabcf8605b7e113f451821e1a4db7ba Mon Sep 17 00:00:00 2001
From: Qi Zhang <qi.z.zhang at intel.com>
Date: Wed, 6 May 2020 18:43:15 +0800
Subject: [PATCH] net/ice: fix variable initialization

[ upstream commit 0beafe7b042f5ea3814471ef6c98aa895d345d4d ]

Fix coverity defect due to uninitialized scalar variable.

Coverity issue: 357763
Fixes: 47d460d63233 ("net/ice: rework switch filter")

Signed-off-by: Qi Zhang <qi.z.zhang at intel.com>
Acked-by: Xiaolong Ye <xiaolong.ye at intel.com>
---
 drivers/net/ice/ice_switch_filter.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/ice/ice_switch_filter.c b/drivers/net/ice/ice_switch_filter.c
index 202f29dab5..6c24731638 100644
--- a/drivers/net/ice/ice_switch_filter.c
+++ b/drivers/net/ice/ice_switch_filter.c
@@ -1094,6 +1094,7 @@ ice_switch_parse_pattern_action(struct ice_adapter *ad,
 		return -rte_errno;
 	}
 
+	memset(&rule_info, 0, sizeof(rule_info));
 	rule_info.tun_type = tun_type;
 
 	sw_meta_ptr =
-- 
2.20.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2020-05-19 14:04:52.967344369 +0100
+++ 0205-net-ice-fix-variable-initialization.patch	2020-05-19 14:04:44.592655188 +0100
@@ -1,13 +1,14 @@
-From 0beafe7b042f5ea3814471ef6c98aa895d345d4d Mon Sep 17 00:00:00 2001
+From 39abdde91aabcf8605b7e113f451821e1a4db7ba Mon Sep 17 00:00:00 2001
 From: Qi Zhang <qi.z.zhang at intel.com>
 Date: Wed, 6 May 2020 18:43:15 +0800
 Subject: [PATCH] net/ice: fix variable initialization
 
+[ upstream commit 0beafe7b042f5ea3814471ef6c98aa895d345d4d ]
+
 Fix coverity defect due to uninitialized scalar variable.
 
 Coverity issue: 357763
 Fixes: 47d460d63233 ("net/ice: rework switch filter")
-Cc: stable at dpdk.org
 
 Signed-off-by: Qi Zhang <qi.z.zhang at intel.com>
 Acked-by: Xiaolong Ye <xiaolong.ye at intel.com>
@@ -16,17 +17,17 @@
  1 file changed, 1 insertion(+)
 
 diff --git a/drivers/net/ice/ice_switch_filter.c b/drivers/net/ice/ice_switch_filter.c
-index 1bea7e807c..dd3f4847aa 100644
+index 202f29dab5..6c24731638 100644
 --- a/drivers/net/ice/ice_switch_filter.c
 +++ b/drivers/net/ice/ice_switch_filter.c
-@@ -1503,6 +1503,7 @@ ice_switch_parse_pattern_action(struct ice_adapter *ad,
- 		goto error;
+@@ -1094,6 +1094,7 @@ ice_switch_parse_pattern_action(struct ice_adapter *ad,
+ 		return -rte_errno;
  	}
  
 +	memset(&rule_info, 0, sizeof(rule_info));
  	rule_info.tun_type = tun_type;
  
- 	ret = ice_switch_check_action(actions, error);
+ 	sw_meta_ptr =
 -- 
 2.20.1
 


More information about the stable mailing list