From: Qi Zhang Date: Wed, 6 May 2020 10:43:15 +0000 (+0800) Subject: net/ice: fix variable initialization X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=0beafe7b042f5ea3814471ef6c98aa895d345d4d;p=dpdk.git 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 --- 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);