]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: snapshot: Acquire job earlier on snapshot revert/delete
authorJincheng Miao <jmiao@redhat.com>
Thu, 28 Aug 2014 11:27:04 +0000 (19:27 +0800)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 8 Sep 2014 09:51:33 +0000 (11:51 +0200)
commita4065dc3e7b17a5fa6916fca2fb28a0d723fe13d
treed45a433ca4528a573f993f5d5cc39bafc839baa5
parentb3d2a42e80aaee1f322fc9beb98b6ed541574ab3
qemu: snapshot: Acquire job earlier on snapshot revert/delete

The code would lookup the snapshot object before acquiring the job. This
could lead to a crash as one thread could delete the snapshot object,
while a second thread already had the reference.

Signed-off-by: Jincheng Miao <jmiao@redhat.com>
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
src/qemu/qemu_driver.c