Re: [dpdk-dev] [PATCH] common/dpaax: fix incorrect error case

2018-10-24 Thread Thomas Monjalon
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 translati

[dpdk-dev] [PATCH] common/dpaax: fix incorrect error case

2018-10-23 Thread 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.j...@nxp.com Signed-of