]> git.ipfire.org Git - thirdparty/libvirt.git/commit
storage: Don't dereference driver object if virStorageSource is not initialized
authorPeter Krempa <pkrempa@redhat.com>
Wed, 6 Dec 2017 15:20:07 +0000 (16:20 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 7 Dec 2017 12:03:09 +0000 (13:03 +0100)
commit2d07f1f0ebd44b0348daa61afa0de34f3f838c22
treee13cfc6cb456980729a7168256487c72c6625c80
parentc277034ed7ff555ed7d67fe757118c02483ba181
storage: Don't dereference driver object if virStorageSource is not initialized

virStorageFileReportBrokenChain uses data from the driver private data
pointer to print the user and group. This would lead to a crash in call
paths where we did not initialize the storage backend as recently added
in commit 24e47ee2b93 to qemuDomainDetermineDiskChain.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1522682
src/storage/storage_source.c