[libvirt] [PATCH]: Fixed minor bugs in display and added OOM checks.

Pritesh Kothari Pritesh.Kothari at Sun.COM
Mon Sep 7 08:59:10 UTC 2009


Hi All,

There was a minor bug in selecting the graphics type. if the graphics type was 
desktop it was assumed that display is set for it, and thus crashed on strdup,
so now checking if display is present before setting it.

The second bug was while setting the 3d acceleration parameter, VIR_ALLOC()
returns 0 or greater if success and not the other way round.

Lastly added OOM checks in few places which were missed earlier.

Regards,
Pritesh
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vbox_2009_09_07.patch
Type: text/x-patch
Size: 9078 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20090907/ac765f40/attachment-0001.bin>


More information about the libvir-list mailing list