[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen master] libxl: ensure xs transaction is initialised in libxl__device_pci_add_xenstore
commit 4600d7560425f89b32cd90ecf6084bae9293dfab Author: Chunyan Liu <cyliu@xxxxxxxx> AuthorDate: Wed Sep 16 14:16:09 2015 +0800 Commit: Ian Campbell <ian.campbell@xxxxxxxxxx> CommitDate: Thu Sep 17 12:14:02 2015 +0100 libxl: ensure xs transaction is initialised in libxl__device_pci_add_xenstore Run "xl pci-attach <domain> <pci_device>", 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 <cyliu@xxxxxxxx> Acked-by: Ian Campbell <ian.campbell@xxxxxxxxxx> [ ijc -- updated commit message ] --- tools/libxl/libxl_pci.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/tools/libxl/libxl_pci.c b/tools/libxl/libxl_pci.c index bb54426..7229a36 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; -- generated by git-patchbot for /home/xen/git/xen.git#master _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |