[dpdk-stable] [PATCH] net/ice: fix uninitialized scalar variable

Ye Xiaolong xiaolong.ye at intel.com
Mon May 11 04:59:32 CEST 2020


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 at dpdk.org
>
>Signed-off-by: Qi Zhang <qi.z.zhang at 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 at intel.com>

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


More information about the stable mailing list