diff options
author | Mark McLoughlin <markmc@redhat.com> | 2009-07-01 23:06:19 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-07-09 16:58:08 -0500 |
commit | 391354f126afde449d679db67a7c6b64afdca0f9 (patch) | |
tree | 1e1efb29f31611ef38ec8e49da4dbf81fe8981f4 /hw/eeprom93xx.c | |
parent | ae50b2747f77944faa79eb914272b54eb30b63b3 (diff) | |
download | qemu-391354f126afde449d679db67a7c6b64afdca0f9.zip qemu-391354f126afde449d679db67a7c6b64afdca0f9.tar.gz qemu-391354f126afde449d679db67a7c6b64afdca0f9.tar.bz2 |
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>
Diffstat (limited to 'hw/eeprom93xx.c')
-rw-r--r-- | hw/eeprom93xx.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/eeprom93xx.c b/hw/eeprom93xx.c index f91b0c9..cf778b7 100644 --- a/hw/eeprom93xx.c +++ b/hw/eeprom93xx.c @@ -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); } |