]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Fix vmdef usage while in monitor in BlockStat* APIs
authorJán Tomko <jtomko@redhat.com>
Wed, 7 Jan 2015 13:35:49 +0000 (14:35 +0100)
committerJán Tomko <jtomko@redhat.com>
Wed, 14 Jan 2015 18:30:32 +0000 (19:30 +0100)
commit3f2139843760e6d5596b75db9df6af8c6e9c1ee6
treecb99ac21ca2f8c40ca7ddcb3a212844de4c13daa
parent051add2ff90f7b7f821e274fd318e1d845144157
Fix vmdef usage while in monitor in BlockStat* APIs

Make a local copy of the disk alias instead of pointing
to the domain definition, which might get freed if
the domain dies while we're in monitor.

Also exit early if that happens.
src/qemu/qemu_driver.c