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 <stephen@networkplumber.org>
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
This commit is contained in:
Stephen Hemminger 2014-08-25 17:41:02 -07:00 committed by Thomas Monjalon
parent 413e8baa0d
commit 844083c46a

View 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