]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
qemu: free priv->origname when qemuMigrationPrepareAny fails
authorLuyao Huang <lhuang@redhat.com>
Tue, 13 Jan 2015 02:15:52 +0000 (10:15 +0800)
committerJiri Denemark <jdenemar@redhat.com>
Thu, 15 Jan 2015 10:32:50 +0000 (11:32 +0100)
commit503527919807b03c4e7b5bcf1aef92fa7b3eafb6
tree11cdfb9d34e4e24222681e570dcda4da1252c5cc
parentc749eda4a2220cddb24467fbbcf22c9b7917b8a2
qemu: free priv->origname when qemuMigrationPrepareAny fails

https://bugzilla.redhat.com/show_bug.cgi?id=1181182

When we meet error in qemuMigrationPrepareAny and goto
cleanup with rc < 0, we forget clear the priv->origname and this
will make this vm migrate fail next time because leave a wrong
origname in  priv, and will Generate a wrong cookie when do
migrate next time.

This patch will make priv->origname is NULL when migrate fail
in target host.

Signed-off-by: Luyao Huang <lhuang@redhat.com>
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
src/qemu/qemu_migration.c