On 20/06/2016 11:50, Yuanhan Liu wrote: > Trying to access xstats_names after "if (stats_names == NULL)" is > obviously wrong, which would result to a crash while running "show > port xstats 0" in testpmd with virtio PMD. > > The fix is also straightforward: just revese the check. > > Fixes: baf91c395b18 ("net/virtio: fetch extended statistics with integer ids") > > Cc: Remy Horton <remy.horton at intel.com> > Signed-off-by: Yuanhan Liu <yuanhan.liu at linux.intel.com>
Acked-by: Remy Horton <remy.horton at intel.com>