vmxnet3: fix crash on stop
authorStephen Hemminger <stephen@networkplumber.org>
Tue, 26 Aug 2014 00:41:02 +0000 (17:41 -0700)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 29 Aug 2014 10:38:29 +0000 (12:38 +0200)
The cmd_ring_release can be called twice if queue has already
been released. This cause crash on shutdown.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
lib/librte_pmd_vmxnet3/vmxnet3_rxtx.c

index 2d9f5e0..0dfce44 100644 (file)
@@ -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