net/i40e: fix crash in close
authorBernard Iremonger <bernard.iremonger@intel.com>
Fri, 27 Jan 2017 10:22:47 +0000 (10:22 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 30 Jan 2017 21:18:26 +0000 (22:18 +0100)
commit7041dc95c08516a7839b3237522360e92a0fce55
tree94d80dd8f4eccd16fd8041ebfd54e10e01c2d81a
parentbbab3d97c37e55f05064efd7cefd965f6ff0661b
net/i40e: fix crash in close

Change the order of releasing the VSI's.
Release the VMDq VSI's first, then release the main VSI.

Fixes: 3cb446b4aeb2 ("i40e: free vmdq vsi when closing")
Cc: stable@dpdk.org
Signed-off-by: Bernard Iremonger <bernard.iremonger@intel.com>
Acked-by: Jingjing Wu <jingjing.wu@intel.com>
drivers/net/i40e/i40e_ethdev.c