]> Git Repo - qemu.git/commitdiff
vmxnet3: fix NICState cleanup
authorStefan Hajnoczi <[email protected]>
Tue, 4 Jun 2013 12:47:26 +0000 (14:47 +0200)
committerStefan Hajnoczi <[email protected]>
Wed, 5 Jun 2013 09:18:19 +0000 (11:18 +0200)
Use qemu_del_nic() instead of qemu_del_net_client() to correctly free
the entire NICState.

Cc: [email protected]
Reported-by: Paolo Bonzini <[email protected]>
Signed-off-by: Stefan Hajnoczi <[email protected]>
hw/net/vmxnet3.c

index 5f483e7f1e30aa5b966d34e3fbb5553cc2fc30c2..4c575e55a78c76a0a269b45c3e752efdd437cf15 100644 (file)
@@ -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)
This page took 0.022461 seconds and 4 git commands to generate.