]> xenbits.xensource.com Git - libvirt.git/commit
qemudDomainSetVcpus: avoid NULL-deref on failed uuid look-up
authorJim Meyering <meyering@redhat.com>
Mon, 17 May 2010 17:28:44 +0000 (19:28 +0200)
committerJim Meyering <meyering@redhat.com>
Tue, 18 May 2010 05:53:42 +0000 (07:53 +0200)
commit20701b17e22e55a93d7aa94ea2611a58b1f27c04
treef03bc64a1f25e6c6c3743ab94424c2106b8dce60
parent93fedcf20f64e02a97a9ab991e3ba3ebf1accbb7
qemudDomainSetVcpus: avoid NULL-deref on failed uuid look-up

* src/qemu/qemu_driver.c (qemudDomainSetVcpus): Upon look-up failure,
i.e., vm==NULL, goto cleanup, rather than to "endjob", superficially
since the latter would dereference vm, but more fundamentally because
we certainly don't want to call qemuDomainObjEndJob before we've
even attempted qemuDomainObjBeginJob.
src/qemu/qemu_driver.c