]> www.infradead.org Git - users/dwmw2/qemu.git/commitdiff
Unregister savevm callback in eeprom93xx_free()
authorMark McLoughlin <markmc@redhat.com>
Wed, 1 Jul 2009 22:06:19 +0000 (23:06 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 10 Jul 2009 22:26:09 +0000 (17:26 -0500)
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>
hw/eeprom93xx.c

index 896cffd441e2fb147219edf25126e5ba05feb28a..6de970adfec163cd461c11e5a973adc3dddf3299 100644 (file)
@@ -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);
 }