summaryrefslogtreecommitdiff
path: root/hw/eeprom93xx.c
diff options
context:
space:
mode:
authorMark McLoughlin <markmc@redhat.com>2009-07-01 23:06:19 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2009-07-09 16:58:08 -0500
commit391354f126afde449d679db67a7c6b64afdca0f9 (patch)
tree1e1efb29f31611ef38ec8e49da4dbf81fe8981f4 /hw/eeprom93xx.c
parentae50b2747f77944faa79eb914272b54eb30b63b3 (diff)
downloadqemu-391354f126afde449d679db67a7c6b64afdca0f9.tar.gz
Unregister savevm callback in eeprom93xx_free()
Otherwise if you hot remove an eepro100 NIC and then migrate, you get: Unknown savevm section or instance 'eeprom' 0 on the destination side. Signed-off-by: Mark McLoughlin <markmc@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/eeprom93xx.c')
-rw-r--r--hw/eeprom93xx.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/eeprom93xx.c b/hw/eeprom93xx.c
index f91b0c99c0..cf778b7410 100644
--- a/hw/eeprom93xx.c
+++ b/hw/eeprom93xx.c
@@ -329,6 +329,7 @@ void eeprom93xx_free(eeprom_t *eeprom)
{
/* Destroy EEPROM. */
logout("eeprom = 0x%p\n", eeprom);
+ unregister_savevm("eeprom", eeprom);
qemu_free(eeprom);
}