Re: [PATCH] qemudDomainSetVcpus: avoid NULL-deref on failed uuid look-up

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 05/17/2010 11:33 AM, Jim Meyering wrote:
> Here's the fix, followed by the endjob/cleanup code:
> 
>>From d696f6067d6e802714adbf3e36bf53c9fcf3ec76 Mon Sep 17 00:00:00 2001
> From: Jim Meyering <meyering@xxxxxxxxxx>
> Date: Mon, 17 May 2010 19:28:44 +0200
> Subject: [PATCH] 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.

ACK.

-- 
Eric Blake   eblake@xxxxxxxxxx    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]