vmxnet3: fix NICState cleanup
PATCH 1/1 vmxnet3: fix NICState cleanup
Use qemu_del_nic() instead of qemu_del_net_client() to correctly free the entire NICState.
Reported-by Paolo Bonzini <[email protected]>
Signed-off-by Stefan Hajnoczi <[email protected]>
--- hw/net/vmxnet3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
hw/net/vmxnet3.c +1 -1
@@ -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)
Signature · 1 line
1.8.1.4
Il 04/06/2013 14:47, Stefan Hajnoczi ha scritto:
Quoted 5 lines
Use
qemu_del_nic()instead ofqemu_del_net_client()to correctly free the entire NICState.Reported-by Paolo Bonzini <[email protected]>Signed-off-by Stefan Hajnoczi <[email protected]>
Quoted 18 lines
--- hw/net/vmxnet3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)hw/net/vmxnet3.c +1
-1@@ -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)
Hi Stefan,
Thanks for fixing this.
Dmitry.
Sent from my iPad
Quoted 25 lines · Stefan Hajnoczi
Use
qemu_del_nic()instead ofqemu_del_net_client()to correctly free the entire NICState.Reported-by Paolo Bonzini <[email protected]>Signed-off-by Stefan Hajnoczi <[email protected]>---
hw/net/vmxnet3.c| 2 +-1 file changed, 1 insertion(+), 1 deletion(-)hw/net/vmxnet3.c +1
-1@@ -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)Signature · 1 line
1.8.1.4
Stefan Hajnoczi
AppliedQuoted 8 lines · Stefan Hajnoczi
Use
qemu_del_nic()instead ofqemu_del_net_client()to correctly free the entire NICState.Reported-by Paolo Bonzini <[email protected]>Signed-off-by Stefan Hajnoczi <[email protected]>--- hw/net/vmxnet3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Thanks, applied to my net tree:
https://github.com/stefanha/qemu/commits/net
Stefan