]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Move the shared disk adding and sgio setting prior to attaching
authorOsier Yang <jyang@redhat.com>
Tue, 19 Feb 2013 12:27:44 +0000 (20:27 +0800)
committerOsier Yang <jyang@redhat.com>
Wed, 20 Feb 2013 16:31:24 +0000 (00:31 +0800)
commit0db7ff59cc419d9859925e1324f021f59e2fe260
treeb7c1254bc89dfba95e913205a1ac9e88d500c1c5
parentd0e4b762042e8f71c24ee93312ee3a131dcd0335
qemu: Move the shared disk adding and sgio setting prior to attaching

The disk def could be free'ed by qemuDomainChangeEjectableMedia,
which can thus cause crash if we reference the disk pointer. On
the other hand, we have to remove the added shared disk entry from
the table on error codepath.
src/qemu/qemu_driver.c