[libvirt] [PATCH] Fix QEMU migration cookie crash for guests with no graphics

Eric Blake eblake at redhat.com
Wed May 18 17:39:23 UTC 2011


On 05/18/2011 11:08 AM, Daniel P. Berrange wrote:
> When generating a cookie for a guest with no data, the
> QEMU_MIGRATION_COOKIE_GRAPHICS flag was set even if no
> graphics data was added. Avoid setting the flag unless
> it was needed, also add a safety check for mig->graphics
> being non-NULL
> 
> * src/qemu/qemu_migration.c: Avoid cookie crash for guest
>   with no graphics
> ---
>  src/qemu/qemu_migration.c |   14 ++++++++------
>  1 files changed, 8 insertions(+), 6 deletions(-)

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/20110518/6af74a00/attachment-0001.sig>


More information about the libvir-list mailing list