mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-24 03:59:52 +00:00
vmxnet3: fix NICState cleanup
Use qemu_del_nic() instead of qemu_del_net_client() to correctly free the entire NICState. Cc: qemu-stable@nongnu.org Reported-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
This commit is contained in:
parent
8819c10b5d
commit
3ffee3cd5f
@ -1892,7 +1892,7 @@ static void vmxnet3_net_uninit(VMXNET3State *s)
|
||||
vmxnet_tx_pkt_reset(s->tx_pkt);
|
||||
vmxnet_tx_pkt_uninit(s->tx_pkt);
|
||||
vmxnet_rx_pkt_uninit(s->rx_pkt);
|
||||
qemu_del_net_client(qemu_get_queue(s->nic));
|
||||
qemu_del_nic(s->nic);
|
||||
}
|
||||
|
||||
static void vmxnet3_net_init(VMXNET3State *s)
|
||||
|
Loading…
Reference in New Issue
Block a user