From mboxrd@z Thu Jan 1 00:00:00 1970 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) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 Apr 2018 22:55:12 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,325,1520924400"; d="scan'208";a="36844732" Received: from tanjianf-mobl.ccr.corp.intel.com (HELO [10.67.64.57]) ([10.67.64.57]) by orsmga006.jf.intel.com with ESMTP; 24 Apr 2018 22:55:11 -0700 To: Anatoly Burakov , dev@dpdk.org References: <8fc9683d48cddb0615f1f1d4482790f54bd8e317.1523977960.git.anatoly.burakov@intel.com> Cc: thomas@monjalon.net From: "Tan, Jianfeng" Message-ID: <2bf40fbb-8172-195f-7f70-3123c30d9b4d@intel.com> Date: Wed, 25 Apr 2018 13:55:10 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <8fc9683d48cddb0615f1f1d4482790f54bd8e317.1523977960.git.anatoly.burakov@intel.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH 1/2] eal: fix potential negative return 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, 25 Apr 2018 05:55:16 -0000 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