Re: [dpdk-dev] [PATCH 5/5] malloc: fix potential negative return

2018-04-25 Thread Burakov, Anatoly
On 25-Apr-18 9:24 AM, Tan, Jianfeng wrote: On 4/17/2018 11:48 PM, Anatoly Burakov wrote: Return value from rte_socket_id_by_idx() may be negative, which would result in negative index access. Additionally, return value was of mismatched type (function returns signed int, socket id was unsigne

Re: [dpdk-dev] [PATCH 5/5] malloc: fix potential negative return

2018-04-25 Thread Tan, Jianfeng
On 4/17/2018 11:48 PM, Anatoly Burakov wrote: Return value from rte_socket_id_by_idx() may be negative, which would result in negative index access. Additionally, return value was of mismatched type (function returns signed int, socket id was unsigned). Coverity issue: 272571 Coverity issue:

[dpdk-dev] [PATCH 5/5] malloc: fix potential negative return

2018-04-17 Thread Anatoly Burakov
Return value from rte_socket_id_by_idx() may be negative, which would result in negative index access. Additionally, return value was of mismatched type (function returns signed int, socket id was unsigned). Coverity issue: 272571 Coverity issue: 272597 Fixes: 30bc6bf0d516 ("malloc: add function