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 5861EA0548; Wed, 19 May 2021 09:21:01 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BF9DF40041; Wed, 19 May 2021 09:21:00 +0200 (CEST) Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by mails.dpdk.org (Postfix) with ESMTP id 04C0C4003F for ; Wed, 19 May 2021 09:20:58 +0200 (CEST) Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 9541F5C008C; Wed, 19 May 2021 03:20:58 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Wed, 19 May 2021 03:20:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s=fm1; bh= 56uRyJNBsP4A06fj+SUXUgRM7GjYNZvQw0O69PkAvRU=; b=ZWIoVSwEFSdcpIKU 2EUlI7/hyDRxHLRup+j98ARC6yl9p24zUiDGhQ4NjGuUsa7BIKQy2rBl4nQllEWK p9lUha3WfB1udxwK2oZ//gwxlEE0ZP1MasDRWTEXzqzt2Efh8RW3wpxwvue1KEVk V7wesiUiqoW+3wANZjc5xat6gGeTCOhJsdjuoJCVQfSK60AmoFLOg6p22J1fIKTv iS+S4cAjefW+sb5j934YH2TSLVYDxgnR7k3WFpUmgNZggBuKYPQi/m+vDvWtxFAE h1WyMqq5QgPUGRErj0fTuD1za2mjAMj1Jd0/8fmocISZSAGxkEM0ti1bOrtYOeoF UsUrQA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=56uRyJNBsP4A06fj+SUXUgRM7GjYNZvQw0O69PkAv RU=; b=bzXCzVL1ir3lyhLdpTGX1qJ1id6Qg3l+d6QazgVXBSVjMdHa2ZkLSek/w 0XXj6COMcD9cvfnOxpbdMlxqFkanljfNg5usx5XEQb0oXnhhcwmLNy1uFYsX3sBW WSXcIsqI7ASfi5Toe6jttyM8Rar+9xIvTg7+65nG+P87QtSQE9is0oyv0PpzUbnS hBKJ2hWkdnP7RABkPRagsE+Bd+yCSglJ4GqE4yf+w/Vgzt85e8unCp0VFcGTDOSm UKSJ6m+0k8LwpM4F41F4FEwZ6UA7JaMYgtQyOsBfufvpJV2AtCtrrKZhic+FVoTv UeVBh8XV6a3nRKoPQSgWH41xaHR8g== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvdeikedguddugecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvffufffkjghfggfgtgesthfuredttddtvdenucfhrhhomhepvfhhohhm rghsucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenuc ggtffrrghtthgvrhhnpedugefgvdefudfftdefgeelgffhueekgfffhfeujedtteeutdej ueeiiedvffegheenucfkphepjeejrddufeegrddvtdefrddukeegnecuvehluhhsthgvrh fuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepthhhohhmrghssehmohhnjhgr lhhonhdrnhgvth X-ME-Proxy: Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 19 May 2021 03:20:57 -0400 (EDT) From: Thomas Monjalon To: "Min Hu (Connor)" Cc: dev@dpdk.org, ferruh.yigit@intel.com, Bruce Richardson Date: Wed, 19 May 2021 09:20:56 +0200 Message-ID: <1970015.3vp9DMyB4u@thomas> In-Reply-To: References: <1619163330-25960-1-git-send-email-humin29@huawei.com> <1620868237-32724-1-git-send-email-humin29@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH v2] test: fix division by zero 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" 13/05/2021 10:23, Bruce Richardson: > On Thu, May 13, 2021 at 09:10:37AM +0800, Min Hu (Connor) wrote: > > Variable i is used as a denominator which may be zero, and > > this may result in segmentation fault. > > > > This patch fixed it. > > > > Fixes: 948bc3d6d095 ("test: add reciprocal based division") > > Cc: stable@dpdk.org > > > > Signed-off-by: Min Hu (Connor) > > --- > > v2: > > * to skip the printouts if i == 0. > > --- > > app/test/test_reciprocal_division_perf.c | 41 +++++++++++++++++++------------- > > 1 file changed, 24 insertions(+), 17 deletions(-) > > > Acked-by: Bruce Richardson Applied, thanks.