From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by dpdk.org (Postfix) with ESMTP id 2D19925B3 for ; Thu, 25 Oct 2018 00:42:24 +0200 (CEST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id AEC3C220E8; Wed, 24 Oct 2018 18:42:23 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Wed, 24 Oct 2018 18:42:23 -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=mesmtp; bh=N5stcAVLtHL3PZk6O3/zUB0iUzVOzFMFXaDdVtHez6Y=; b=fUeKM+ErYiWr dpDAN/aAX9HYtXG0GoZX4x2NLk1Gf7sJN8CHmq4/UD/GzPFTMd8pAcG40xHibBXY okIsLfrFffo4nSDkmqx1PaFAW3/CniDehKk+fABrS4s+d4OPmbSpK10LQYxIXed9 izocOTCnElJVwNQnb5lrE1apDwB9fes= 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=fm1; bh=N5stcAVLtHL3PZk6O3/zUB0iUzVOzFMFXaDdVtHez 6Y=; b=xcKhHsO5SxXfi9GBgHB77dR2RNTs8clOkC+3x/pLOZjx/FF/DbwzYMFRe 5OPMereYaBQEcKI6QShEwNexIXdWGaWC0Rre6IAl0fs1jq/EghtNVJl1L0w5w/Lr j9nG42YYA2rxOQxBvUFoZIWqgbCdSaHAI8bQwtE5269ymbPw1CTu5+ffc/whj77F DZKsgwMyLy3+Do4d5PhPIkOGe7hN+C+5mapfoYNX1JiZkXL9rUveVpO1fX7wWCSr EM0KB+lfXDxxRaBH2e+GLTpdTEAMeYKci9EVbiba2d/g34VdC87HaW7vA0AuFulf XCMLbj3agO4Rg4O8Y7ordiKMzCXQg== X-ME-Sender: 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 id 952AEE455F; Wed, 24 Oct 2018 18:42:22 -0400 (EDT) From: Thomas Monjalon To: Shreyansh Jain Cc: dev@dpdk.org Date: Thu, 25 Oct 2018 00:42:25 +0200 Message-ID: <5713136.MsJT7gv9Fm@xps> In-Reply-To: <20181024054334.23732-1-shreyansh.jain@nxp.com> References: <20181024054334.23732-1-shreyansh.jain@nxp.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH] common/dpaax: fix incorrect error case X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Oct 2018 22:42:24 -0000 24/10/2018 07:44, Shreyansh Jain: > In case the memory for nodes cannot be allocated, there is no need > to check for the length. Also, `node_count` is an unsigned value > and cannot be less than 0. > > Coverity issue: 323521 > > Fixes: 2f3d633aa593 ("common/dpaax: add library for PA/VA translation table") > Cc: shreyansh.jain@nxp.com > > Signed-off-by: Shreyansh Jain Applied, thanks