[libvirt] [PATCH v2] qemu: Fix crash on failed VM startup
Eric Blake
eblake at redhat.com
Wed Jun 2 15:02:18 UTC 2010
On 06/02/2010 08:55 AM, Cole Robinson wrote:
> If VM startup fails early enough (can't find a referenced USB device),
> libvirtd will crash trying to clear the VNC port bit, since port = 0,
> which overflows us out of the bitmap bounds.
>
> Fix this by being more defensive in the bitmap operations, and only
> clearing a previously set VNC port.
>
> v2: Add safety check to all relevant bitmap ops.
ACK.
--
Eric Blake eblake at redhat.com +1-801-349-2682
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20100602/4d234e1d/attachment-0001.sig>
More information about the libvir-list
mailing list