]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: blockcopy: Initialize correct source structure
authorPeter Krempa <pkrempa@redhat.com>
Tue, 15 Jul 2014 08:31:36 +0000 (10:31 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 15 Jul 2014 08:31:36 +0000 (10:31 +0200)
commit95d6aff7878309037f82acaae756108f29e42309
tree920ed9d713256386d0b20c55a37aff3ad697b168
parent54d4619cdab6b9c80cd0f76408b44841775f06ea
qemu: blockcopy: Initialize correct source structure

4cc1f1a01fb338de939ba88eb933931687b22336 introduced a crash when doing a
block copy as virStorageSourceInitChainElement was called on
"disk->mirror" that is still NULL at that point instead of "mirror"
which temporarily holds the mirror source struct until it's fully
initialized. This resulted into a crash as a NULL was dereferenced.

Reported by: Shanzi Yu <shyu@redhat.com>
src/qemu/qemu_driver.c