From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id E0A88A0547; Thu, 29 Apr 2021 15:36:10 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BA38E410DD; Thu, 29 Apr 2021 15:36:10 +0200 (CEST) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mails.dpdk.org (Postfix) with ESMTP id 103F6406FF for ; Thu, 29 Apr 2021 15:36:09 +0200 (CEST) IronPort-SDR: qO/Zlt5bXqSdjxunbqzXHdre278SM6+mV83Ft4nBNPRd60lJ4LXlnf9hVGthRH63mYcFOK5nXo 0k1Tyy+FD6Yg== X-IronPort-AV: E=McAfee;i="6200,9189,9969"; a="197052563" X-IronPort-AV: E=Sophos;i="5.82,259,1613462400"; d="scan'208";a="197052563" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Apr 2021 06:36:08 -0700 IronPort-SDR: qdoJpu6G/h08uZYTyj047rYjP8foujMnvGi1QM6hP0vmsfpdDpsWV5RRA7fho6aboClx+H5YdA l83kYZMdyYlg== X-IronPort-AV: E=Sophos;i="5.82,259,1613462400"; d="scan'208";a="526943937" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.213.208.65]) ([10.213.208.65]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Apr 2021 06:36:07 -0700 To: "Min Hu (Connor)" , dev@dpdk.org Cc: xiaoyun.li@intel.com References: <1619005102-38437-1-git-send-email-humin29@huawei.com> <1619438277-56847-1-git-send-email-humin29@huawei.com> From: Ferruh Yigit X-User: ferruhy Message-ID: <5ead0881-2f2a-8729-0678-f140bee36352@intel.com> Date: Thu, 29 Apr 2021 14:36:06 +0100 MIME-Version: 1.0 In-Reply-To: <1619438277-56847-1-git-send-email-humin29@huawei.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH v2] app/testpmd: fix division by zero bug X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 4/26/2021 12:57 PM, Min Hu (Connor) wrote: > Variable total, which may be zero and result in segmentation fault. > > This patch fixed it. > > Fixes: 9b1249d9ff69 ("app/testpmd: support dumping socket memory") > Cc: stable@dpdk.org > > Signed-off-by: Min Hu (Connor) Reviewed-by: Ferruh Yigit Applied to dpdk-next-net/main, thanks.