[libvirt] [PATCH] qemuDomainSnapshotPrepare: Don't always assume vm->def->os.loader

2017-03-30 Thread Michal Privoznik
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-o

Re: [libvirt] [PATCH] qemuDomainSnapshotPrepare: Don't always assume vm->def->os.loader

2017-03-30 Thread Peter Krempa
On Thu, Mar 30, 2017 at 14:06:22 +0200, Michal Privoznik wrote: > 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-