virtio-serial: save/load: Ensure we have hot-plugged ports instantiated
commit16af2e3c35990cb7aceb37ffe5827a28fd4614d0
authorAmit Shah <amit.shah@redhat.com>
Tue, 27 Apr 2010 12:33:57 +0000 (27 18:03 +0530)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 28 Apr 2010 13:58:21 +0000 (28 08:58 -0500)
tree82a894e53f61370efd25f4356160c95ff5217ee4
parent295587f747c7747e37208540a7a7f4d13a6ba4de
virtio-serial: save/load: Ensure we have hot-plugged ports instantiated

If some ports that were hot-plugged on the source are not available on
the destination, fail migration instead of trying to deref a NULL
pointer.

Signed-off-by: Amit Shah <amit.shah@redhat.com>
Reported-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/virtio-serial-bus.c