OSDN Git Service
(root)
/
qmiga
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8819c10
)
vmxnet3: fix NICState cleanup
author
Stefan Hajnoczi
<stefanha@redhat.com>
Tue, 4 Jun 2013 12:47:26 +0000
(14:47 +0200)
committer
Stefan Hajnoczi
<stefanha@redhat.com>
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: qemu-stable@nongnu.org
Reported-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
hw/net/vmxnet3.c
patch
|
blob
|
history
diff --git
a/hw/net/vmxnet3.c
b/hw/net/vmxnet3.c
index
5f483e7
..
4c575e5
100644
(file)
--- a/
hw/net/vmxnet3.c
+++ b/
hw/net/vmxnet3.c
@@
-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_n
et_client(qemu_get_queue(s->nic)
);
+ qemu_del_n
ic(s->nic
);
}
static void vmxnet3_net_init(VMXNET3State *s)