[libvirt] [PATCH] libxl: initialize allocated libxl_device_vfb array

Olaf Hering olaf at aepfle.de
Fri Apr 17 17:23:00 UTC 2015


Its already allocated by calloc, but the init function sets ->devid.
Just in case anything cares.

Signed-off-by: Olaf Hering <olaf at aepfle.de>
Cc: Jim Fehlig <jfehlig at suse.com>
---
 src/libxl/libxl_conf.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/libxl/libxl_conf.c b/src/libxl/libxl_conf.c
index 6feb7d9..8b76fc7 100644
--- a/src/libxl/libxl_conf.c
+++ b/src/libxl/libxl_conf.c
@@ -1288,6 +1288,7 @@ libxlMakeVfbList(virPortAllocatorPtr graphicsports,
     }
 
     for (i = 0; i < nvfbs; i++) {
+        libxl_device_vfb_init(&x_vfbs[i]);
         libxl_device_vkb_init(&x_vkbs[i]);
 
         if (libxlMakeVfb(graphicsports, l_vfbs[i], &x_vfbs[i]) < 0)




More information about the libvir-list mailing list