Commit eed79309 authored by Paolo Bonzini's avatar Paolo Bonzini

nic: do not destroy memory regions in cleanup functions

The memory regions should be destroyed in the unrealize function;
since these NICs are not even qdev-ified, they cannot be unplugged
and they do not have to do anything to destroy their memory regions.
Reviewed-by: default avatarStefan Hajnoczi <>
Reviewed-by: default avatarPeter Crosthwaite <>
Signed-off-by: default avatarPaolo Bonzini <>
parent ad37168c
......@@ -863,9 +863,6 @@ static void nic_cleanup(NetClientState *nc)
dp8393xState *s = qemu_get_nic_opaque(nc);
memory_region_del_subregion(s->address_space, &s->mmio);
......@@ -443,9 +443,6 @@ static void mcf_fec_cleanup(NetClientState *nc)
mcf_fec_state *s = qemu_get_nic_opaque(nc);
memory_region_del_subregion(s->sysmem, &s->iomem);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment