# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1267799744 0
# Node ID f0777eafb73b9fdcb2a6174ce4595a0a24c64b01
# Parent 3138b3885999bc608ee53b7ed916b027ab35cfc1
xl: Fix undefined behaviour when pci not specified in input file
Signed-off-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
---
tools/libxl/xl.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
diff -r 3138b3885999 -r f0777eafb73b tools/libxl/xl.c
--- a/tools/libxl/xl.c Fri Mar 05 14:35:09 2010 +0000
+++ b/tools/libxl/xl.c Fri Mar 05 14:35:44 2010 +0000
@@ -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) {
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|