From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] common/dpaax: fix incorrect error case Date: Thu, 25 Oct 2018 00:42:25 +0200 Message-ID: <5713136.MsJT7gv9Fm@xps> References: <20181024054334.23732-1-shreyansh.jain@nxp.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: Shreyansh Jain 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) In-Reply-To: <20181024054334.23732-1-shreyansh.jain@nxp.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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