Re: [dpdk-dev] [PATCH 1/2] eal: fix potential negative return

2018-04-24 Thread Tan, Jianfeng
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.bura...@intel.com Sign

[dpdk-dev] [PATCH 1/2] eal: fix potential negative return

2018-04-17 Thread Anatoly Burakov
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.bura...@intel.com Signed-off-by: Anatoly Burakov --- lib/librte_eal/li