]> xenbits.xensource.com Git - libvirt.git/commit
qemuDomainSnapshotPrepare: Don't always assume vm->def->os.loader
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 30 Mar 2017 12:03:45 +0000 (14:03 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 30 Mar 2017 12:03:45 +0000 (14:03 +0200)
commitfa3b51071157885c40d76e3f18a7fdb2e6e74b39
tree2985296bc1f02ea8536ac767e0d1f95f4c134e66
parent385c1cc96c54c88fad3e371ab6966f5c5a098441
qemuDomainSnapshotPrepare: Don't always assume vm->def->os.loader

In 9e2465834 a check that denies internal snapshots when pflash
based loader is configured for the domain. However, if there's
none and an user tries to do an internal snapshot they will
witness daemon crash as in that case vm->def->os.loader is NULL
and we dereference it unconditionally.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_driver.c