Re: [dpdk-dev] [PATCH] examples/ioat: handle error when querying number of stats

2019-11-26 Thread David Marchand
On Mon, Nov 25, 2019 at 4:36 PM Bruce Richardson wrote: > > To get the amount of memory needed for stats, we call the xstats_get_names > function with a NULL parameter, which can return -1 on error. This negative > value was not previously handled correctly, so we adjust things to quit the > stats

[dpdk-dev] [PATCH] examples/ioat: handle error when querying number of stats

2019-11-25 Thread Bruce Richardson
To get the amount of memory needed for stats, we call the xstats_get_names function with a NULL parameter, which can return -1 on error. This negative value was not previously handled correctly, so we adjust things to quit the stats printing routine if this basic call fails. Coverity issue: 350346