This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


[Xen-changelog] [xen-unstable] libxl: fix segfault on device assignement

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] libxl: fix segfault on device assignement
From: Xen patchbot-unstable <patchbot@xxxxxxx>
Date: Sat, 29 Jan 2011 15:05:23 -0800
Delivery-date: Sat, 29 Jan 2011 15:07:14 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
# Date 1295979729 0
# Node ID 5429204f3c06d0acb7ef178f5bf225e32887e869
# Parent  1d1eec7e1fb4c8bc7be6873fcf235eeee90920c5
libxl: fix segfault on device assignement

Fix a xl/libxl segfault when assigning a device to the guest (bug

Signed-off-by: Gianni Tedesco <gianni.tedesco@xxxxxxxxxx>
Signed-off-by: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
Acked-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
Committed-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
 tools/libxl/libxl_pci.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r 1d1eec7e1fb4 -r 5429204f3c06 tools/libxl/libxl_pci.c
--- a/tools/libxl/libxl_pci.c   Tue Jan 25 18:09:49 2011 +0000
+++ b/tools/libxl/libxl_pci.c   Tue Jan 25 18:22:09 2011 +0000
@@ -268,7 +268,7 @@ static int libxl_create_pci_backend(libx
     for (i = 0; i < num; i++, pcidev++)
         libxl_create_pci_backend_device(gc, back, i, pcidev);
-    flexarray_vappend(back, "num_devs", libxl__sprintf(gc, "%d", num));
+    flexarray_vappend(back, "num_devs", libxl__sprintf(gc, "%d", num), NULL);
                       "backend-id", libxl__sprintf(gc, "%d", 0),

Xen-changelog mailing list

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] libxl: fix segfault on device assignement, Xen patchbot-unstable <=