From: Yogev Chaimovich Date: Thu, 16 May 2019 07:10:38 +0000 (+0000) Subject: net/vmxnet3: fix uninitialized variable X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=de80fbfddb44b1bf883f84b9e2edbde22a569758;p=dpdk.git net/vmxnet3: fix uninitialized variable Coverity issue: 323479 Fixes: 30f77abecd38 ("net/vmxnet3: support stats reset") Cc: stable@dpdk.org Signed-off-by: Yogev Chaimovich Acked-by: Yong Wang --- diff --git a/drivers/net/vmxnet3/vmxnet3_ethdev.c b/drivers/net/vmxnet3/vmxnet3_ethdev.c index 79ec42e373..2b1e915110 100644 --- a/drivers/net/vmxnet3/vmxnet3_ethdev.c +++ b/drivers/net/vmxnet3/vmxnet3_ethdev.c @@ -1132,8 +1132,8 @@ vmxnet3_dev_stats_reset(struct rte_eth_dev *dev) { unsigned int i; struct vmxnet3_hw *hw = dev->data->dev_private; - struct UPT1_TxStats txStats; - struct UPT1_RxStats rxStats; + struct UPT1_TxStats txStats = {0}; + struct UPT1_RxStats rxStats = {0}; VMXNET3_WRITE_BAR1_REG(hw, VMXNET3_REG_CMD, VMXNET3_CMD_GET_STATS);