DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] net/ice: fix uninitialized scalar variable
@ 2020-05-06 10:43 Qi Zhang
  2020-05-11  2:59 ` Ye Xiaolong
  0 siblings, 1 reply; 2+ messages in thread
From: Qi Zhang @ 2020-05-06 10:43 UTC (permalink / raw)
  To: qiming.yang; +Cc: john.mcnamara, xiaolong.ye, dev, Qi Zhang, stable

Fix coverity defect due to uninitialized scalar variable.

Coverity issue: 357763

Fixes: 47d460d63233 ("net/ice: rework switch filter")
Cc: stable@dpdk.org

Signed-off-by: Qi Zhang <qi.z.zhang@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 179430136..93f4ebdf0 100644
--- a/drivers/net/ice/ice_switch_filter.c
+++ b/drivers/net/ice/ice_switch_filter.c
@@ -1500,6 +1500,7 @@ ice_switch_parse_pattern_action(struct ice_adapter *ad,
 		goto error;
 	}
 
+	memset(&rule_info, 0, sizeof(rule_info));
 	rule_info.tun_type = tun_type;
 
 	ret = ice_switch_check_action(actions, error);
-- 
2.13.6


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dpdk-dev] [PATCH] net/ice: fix uninitialized scalar variable
  2020-05-06 10:43 [dpdk-dev] [PATCH] net/ice: fix uninitialized scalar variable Qi Zhang
@ 2020-05-11  2:59 ` Ye Xiaolong
  0 siblings, 0 replies; 2+ messages in thread
From: Ye Xiaolong @ 2020-05-11  2:59 UTC (permalink / raw)
  To: Qi Zhang; +Cc: qiming.yang, john.mcnamara, dev, stable

On 05/06, Qi Zhang wrote:
>Fix coverity defect due to uninitialized scalar variable.
>
>Coverity issue: 357763
>
>Fixes: 47d460d63233 ("net/ice: rework switch filter")
>Cc: stable@dpdk.org
>
>Signed-off-by: Qi Zhang <qi.z.zhang@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 179430136..93f4ebdf0 100644
>--- a/drivers/net/ice/ice_switch_filter.c
>+++ b/drivers/net/ice/ice_switch_filter.c
>@@ -1500,6 +1500,7 @@ ice_switch_parse_pattern_action(struct ice_adapter *ad,
> 		goto error;
> 	}
> 
>+	memset(&rule_info, 0, sizeof(rule_info));
> 	rule_info.tun_type = tun_type;
> 
> 	ret = ice_switch_check_action(actions, error);
>-- 
>2.13.6
>

Acked-by: Xiaolong Ye <xiaolong.ye@intel.com>

Applied to dpdk-next-net-intel, Thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-05-11  3:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-06 10:43 [dpdk-dev] [PATCH] net/ice: fix uninitialized scalar variable Qi Zhang
2020-05-11  2:59 ` Ye Xiaolong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).