Skip to contentSkip to conversation

Unregister savevm callback in eeprom93xx_free()

PATCH New Mark McLoughlin 1 participant 1 message Jul 1, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 hw/eeprom93xx.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
hw/eeprom93xx.c +1 -0
index f91b0c9..cf778b7 100644
@@ -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);
 }
 
Signature · 1 line
1.6.2.2