net/ice: fix variable initialization
authorQi Zhang <qi.z.zhang@intel.com>
Wed, 6 May 2020 10:43:15 +0000 (18:43 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 11 May 2020 20:27:39 +0000 (22:27 +0200)
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>
Acked-by: Xiaolong Ye <xiaolong.ye@intel.com>
drivers/net/ice/ice_switch_filter.c

index 1bea7e8..dd3f484 100644 (file)
@@ -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);