net/i40e: fix VF reset stats crash
authorDavid Harton <dharton@cisco.com>
Thu, 11 Jan 2018 15:13:58 +0000 (10:13 -0500)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 16 Jan 2018 17:47:49 +0000 (18:47 +0100)
commitcde1f0252811e81a3c485ca1932cc655736f1e49
tree73903703e07925561d9da9b4a20f18817e815c89
parent37b68eacfc9901f9c30f2127c68ef806e2bd2a61
net/i40e: fix VF reset stats crash

Calling i40evf_dev_xstats_reset can sometimes crash. Fixed issue
by checking return code before using pstats.

Fixes: 8210e9e0d805 ("net/i40e: fix clear xstats bug in VF")
Cc: stable@dpdk.org
Signed-off-by: David Harton <dharton@cisco.com>
Acked-by: Harry van Haaren <harry.van.haaren@intel.com>
Acked-by: Wei Zhao <wei.zhao1@intel.com>
drivers/net/i40e/i40e_ethdev_vf.c