From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.droids-corp.org (zoll.droids-corp.org [94.23.50.67]) by dpdk.org (Postfix) with ESMTP id 6A6EBCE7 for ; Mon, 23 May 2016 13:28:39 +0200 (CEST) Received: from was59-1-82-226-113-214.fbx.proxad.net ([82.226.113.214] helo=[192.168.0.10]) by mail.droids-corp.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1b4o4O-0005RI-Bp; Mon, 23 May 2016 13:30:48 +0200 To: Slawomir Mrozowicz References: <1463661395-6979-1-git-send-email-slawomirx.mrozowicz@intel.com> Cc: dev@dpdk.org From: Olivier Matz Message-ID: <5742E961.4060501@6wind.com> Date: Mon, 23 May 2016 13:28:33 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.6.0 MIME-Version: 1.0 In-Reply-To: <1463661395-6979-1-git-send-email-slawomirx.mrozowicz@intel.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH v2] rte mempool: division or modulo by zero X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 May 2016 11:28:39 -0000 On 05/19/2016 02:36 PM, Slawomir Mrozowicz wrote: > Fix issue reported by Coverity. > > Coverity ID 13243: Division or modulo by zero > In function call rte_mempool_xmem_size, division by expression total_size > which may be zero has undefined behavior. > > Fixes: 148f963fb532 ("xen: core library changes") > > Signed-off-by: Slawomir Mrozowicz Acked-by: Olivier Matz