From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 62242A00E6 for ; Thu, 16 May 2019 10:28:45 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 2692A1C0B; Thu, 16 May 2019 10:28:45 +0200 (CEST) Received: from mail-vk1-f193.google.com (mail-vk1-f193.google.com [209.85.221.193]) by dpdk.org (Postfix) with ESMTP id 862221C0B for ; Thu, 16 May 2019 10:28:44 +0200 (CEST) Received: by mail-vk1-f193.google.com with SMTP id v140so789736vkd.7 for ; Thu, 16 May 2019 01:28:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=5Q2925grd1uRpvUemGepYM7TxrG9TqHIFQpzW0KhlFw=; b=OA5iQ45xvGmyLGNG9KN4ylfaHcn3Ukas2XBwvQXAJ7cF8zgv+FrNIZaxOxzhclyhj0 Z5EtdQBc2icIE6YluWQEaP+3jFSC74j8VJNh7h1QC/Nbp2KTo+Y6dzIgOZIAaX8cJSvh IXK+olvI6B3cEC6jq38vl/EB2KAn0vVzw+f32eFvEmgyrOJhDa7HJUEXznaeceC6WgMv 8fiPWV+z2/63W4T8fucwBYb/ogX2gzwVTEYQp9hZ0heuYpCrufB2B9QNBX9eR2pUfRn7 c8eKZ8GyPjTHZwhkcuBa1ox0n0Loc/3Cxgz9kM3ufpsLY1ye6S/lCWr0R3h85FRyvZ9A e9+w== X-Gm-Message-State: APjAAAU+5tqfaOJwTpTD8GBW6VcWnhZksc9DO4NeD80PS25GgJvtjvMf /jolqRlnDvMSsD3G6jg7CR/0x4hTN0rrmpNpVtU2xA== X-Google-Smtp-Source: APXvYqwhveWLqRKr7ax2kIU7y6em2D4IXiC4ZdRWUeWtKUcCCPy590ai+RX8eqIUHkRS3FAKMFDmuOYSImpSem/99IQ= X-Received: by 2002:a1f:a54f:: with SMTP id o76mr20549017vke.86.1557995323042; Thu, 16 May 2019 01:28:43 -0700 (PDT) MIME-Version: 1.0 References: <1557990898-79349-1-git-send-email-yogev@cgstowernetworks.com> In-Reply-To: <1557990898-79349-1-git-send-email-yogev@cgstowernetworks.com> From: David Marchand Date: Thu, 16 May 2019 10:28:31 +0200 Message-ID: To: Yogev Chaimovich Cc: "yongwang@vmware.com" , "dev@dpdk.org" , "stable@dpdk.org" Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-stable] [dpdk-dev] [PATCH] net/vmxnet3: uninitialized variable fix X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" On Thu, May 16, 2019 at 9:10 AM Yogev Chaimovich wrote: I am not sure this is the right fix but I don't know this driver so I will let Yong comment on this. On the form, please, have a look at the recommandations for submitting patches: http://doc.dpdk.org/guides/contributing/patches.html#commit-messages-body Coverity issue: 323479 > Fixes: 30f77abe net/vmxnet3: support stats reset > Here, we would expect the Fixes: line as: Fixes: 30f77abecd38 ("net/vmxnet3: support stats reset") > Cc: stable@dpdk.org > > Signed-off-by: yogev ch > Iiuc, your sob line should be: Signed-off-by: Yogev Chaimovich --- > drivers/net/vmxnet3/vmxnet3_ethdev.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/net/vmxnet3/vmxnet3_ethdev.c > b/drivers/net/vmxnet3/vmxnet3_ethdev.c > index f54536b..c465996 100644 > --- a/drivers/net/vmxnet3/vmxnet3_ethdev.c > +++ b/drivers/net/vmxnet3/vmxnet3_ethdev.c > @@ -1132,8 +1132,8 @@ static int eth_vmxnet3_pci_remove(struct > rte_pci_device *pci_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); > > -- > 1.9.1 > > -- David Marchand