summaryrefslogtreecommitdiff
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-10 17:26:09 -0500
commit51224c6f783ad0f711d69068ce8e0a3e60deb032 (patch)
tree7fdd54796603ab4dfe9196827697d1b747a41147
parented8f8da7a67999cd8b89e449b8b101f14fa16272 (diff)
downloadqemu-51224c6f783ad0f711d69068ce8e0a3e60deb032.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>
-rw-r--r--hw/eeprom93xx.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/eeprom93xx.c b/hw/eeprom93xx.c
index 896cffd441..6de970adfe 100644
--- a/hw/eeprom93xx.c
+++ b/hw/eeprom93xx.c
@@ -301,6 +301,7 @@ void eeprom93xx_free(eeprom_t *eeprom)
{
/* Destroy EEPROM. */
logout("eeprom = 0x%p\n", eeprom);
+ unregister_savevm("eeprom", eeprom);
qemu_free(eeprom);
}