mirror of https://gitee.com/openkylin/qemu.git
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>
This commit is contained in:
parent
ae50b2747f
commit
391354f126
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue