]> xenbits.xensource.com Git - xen.git/commitdiff
xl: Fix undefined behaviour when pci not specified in input file
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 5 Mar 2010 14:35:44 +0000 (14:35 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 5 Mar 2010 14:35:44 +0000 (14:35 +0000)
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/xl.c

index 6e88c6ee6a5e6bdc7bfe00c4a68d1893e6c38c09..2e23da3307ed94a606c7062b3fa60a577c92ffef 100644 (file)
@@ -590,7 +590,7 @@ skip_vfb:
     if (!xlu_cfg_get_long (config, "pci_power_mgmt", &l))
         pci_power_mgmt = l;
 
-    if (xlu_cfg_get_list (config, "pci", &pcis, 0)) {
+    if (!xlu_cfg_get_list (config, "pci", &pcis, 0)) {
         *num_pcidevs = 0;
         *pcidevs = NULL;
         while ((buf = xlu_cfg_get_listitem (pcis, *num_pcidevs)) != NULL) {