Commit 391354f126afde449d679db67a7c6b64afdca0f9
Committed by
Anthony Liguori
1 parent
ae50b274
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>
Showing
1 changed file
with
1 additions
and
0 deletions
hw/eeprom93xx.c
| @@ -329,6 +329,7 @@ void eeprom93xx_free(eeprom_t *eeprom) | @@ -329,6 +329,7 @@ void eeprom93xx_free(eeprom_t *eeprom) | ||
| 329 | { | 329 | { |
| 330 | /* Destroy EEPROM. */ | 330 | /* Destroy EEPROM. */ |
| 331 | logout("eeprom = 0x%p\n", eeprom); | 331 | logout("eeprom = 0x%p\n", eeprom); |
| 332 | + unregister_savevm("eeprom", eeprom); | ||
| 332 | qemu_free(eeprom); | 333 | qemu_free(eeprom); |
| 333 | } | 334 | } |
| 334 | 335 |