From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Tan, Jianfeng" Subject: Re: [PATCH 1/2] eal: fix potential negative return Date: Wed, 25 Apr 2018 13:55:10 +0800 Message-ID: <2bf40fbb-8172-195f-7f70-3123c30d9b4d@intel.com> References: <8fc9683d48cddb0615f1f1d4482790f54bd8e317.1523977960.git.anatoly.burakov@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Cc: thomas@monjalon.net To: Anatoly Burakov , dev@dpdk.org Return-path: Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id DB79F2A62 for ; Wed, 25 Apr 2018 07:55:15 +0200 (CEST) In-Reply-To: <8fc9683d48cddb0615f1f1d4482790f54bd8e317.1523977960.git.anatoly.burakov@intel.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" On 4/17/2018 11:42 PM, Anatoly Burakov wrote: > Value returned by rte_socket_id_by_idx() may be negative, which would > result in negative array index access. > > Coverity issue: 272600 > > Fixes: b666f17858a3 ("mem: read hugepage counts from node-specific sysfs path") > Cc: anatoly.burakov@intel.com > > Signed-off-by: Anatoly Burakov Reviewed-by: Jianfeng Tan