From 4600d7560425f89b32cd90ecf6084bae9293dfab Mon Sep 17 00:00:00 2001 From: Chunyan Liu Date: Wed, 16 Sep 2015 14:16:09 +0800 Subject: [PATCH] libxl: ensure xs transaction is initialised in libxl__device_pci_add_xenstore Run "xl pci-attach ", the 2nd time fails: xl: libxl_xshelp.c:209: libxl__xs_transaction_start: Assertion `!*t' failed. Aborted To fix that, initialize xs_transaction to avoid libxl__xs_transaction_start assertion error. Signed-off-by: Chunyan Liu Acked-by: Ian Campbell [ ijc -- updated commit message ] --- tools/libxl/libxl_pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/libxl/libxl_pci.c b/tools/libxl/libxl_pci.c index bb54426bae..7229a36db3 100644 --- a/tools/libxl/libxl_pci.c +++ b/tools/libxl/libxl_pci.c @@ -123,7 +123,7 @@ static int libxl__device_pci_add_xenstore(libxl__gc *gc, uint32_t domid, libxl_d flexarray_t *back; char *num_devs, *be_path; int num = 0; - xs_transaction_t t; + xs_transaction_t t = XBT_NULL; libxl__device *device; int rc; libxl_domain_config d_config; -- 2.39.5