From 0beafe7b042f5ea3814471ef6c98aa895d345d4d Mon Sep 17 00:00:00 2001 From: Qi Zhang Date: Wed, 6 May 2020 18:43:15 +0800 Subject: [PATCH] net/ice: fix variable initialization 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 Acked-by: Xiaolong Ye --- 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 1bea7e807c..dd3f4847aa 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; } + memset(&rule_info, 0, sizeof(rule_info)); rule_info.tun_type = tun_type; ret = ice_switch_check_action(actions, error); -- 2.20.1