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

David Marchand david.marchand at redhat.com
Tue Nov 26 17:27:47 CET 2019


On Mon, Nov 25, 2019 at 4:36 PM Bruce Richardson
<bruce.richardson at intel.com> 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 printing routine if this basic call fails.
>
> Coverity issue: 350346
> Fixes: 632bcd9b5d4f ("examples/ioat: print statistics")
>
> Signed-off-by: Bruce Richardson <bruce.richardson at intel.com>

Applied, thanks.



--
David Marchand



More information about the dev mailing list