From: Stephen Hemminger Date: Tue, 26 Aug 2014 00:41:02 +0000 (-0700) Subject: vmxnet3: fix crash on stop X-Git-Tag: spdx-start~10450 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=844083c46a9381f25edacd7357e007aa8a2d29f8;p=dpdk.git vmxnet3: fix crash on stop The cmd_ring_release can be called twice if queue has already been released. This cause crash on shutdown. Signed-off-by: Stephen Hemminger Acked-by: Thomas Monjalon --- diff --git a/lib/librte_pmd_vmxnet3/vmxnet3_rxtx.c b/lib/librte_pmd_vmxnet3/vmxnet3_rxtx.c index 2d9f5e02ee..0dfce44f74 100644 --- a/lib/librte_pmd_vmxnet3/vmxnet3_rxtx.c +++ b/lib/librte_pmd_vmxnet3/vmxnet3_rxtx.c @@ -173,6 +173,7 @@ vmxnet3_cmd_ring_release(vmxnet3_cmd_ring_t *ring) vmxnet3_cmd_ring_adv_next2comp(ring); } rte_free(ring->buf_info); + ring->buf_info = NULL; } void