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:
parent
413e8baa0d
commit
844083c46a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user