[dpdk-dev] [PATCH] virtio: fix crash on querying xstats

Yuanhan Liu yuanhan.liu at linux.intel.com
Mon Jun 20 13:47:25 CEST 2016


On Mon, Jun 20, 2016 at 12:02:16PM +0100, Remy Horton wrote:
> 
> 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>

Applied to dpdk-next-virtio.

	--yliu


More information about the dev mailing list