git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
82d806b
)
net/ice: fix variable initialization
author
Qi Zhang
<qi.z.zhang@intel.com>
Wed, 6 May 2020 10:43:15 +0000
(18:43 +0800)
committer
Ferruh 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
patch
|
blob
|
history
diff --git
a/drivers/net/ice/ice_switch_filter.c
b/drivers/net/ice/ice_switch_filter.c
index
1bea7e8
..
dd3f484
100644
(file)
--- 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);