[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] pci-attach: fix assertation
On Wed, 2015-09-16 at 14:16 +0800, Chunyan Liu wrote: For the subject I prefer to avoid "fix <vague>" style messages. In this case something like "libxl: ensure xs transaction is initialised in libxl__device_pci_add_xenstore" would be better. > Run "xl pci-attach <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 assertation error. "assertion". > Signed-off-by: Chunyan Liu <cyliu@xxxxxxxx> With an updated commit message (which I can do as I commit): Acked-by: Ian Campbell <ian.campbell@xxxxxxxxxx> Wei, I think we want this for 4.6. Ian, tools/libxl/libxl_internal.h says to initialised the transaction to 0 rather than XBT_NULL explicitly -- I don't think there is a specific reason for that though? > --- > 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 1ebdce7..19c597e 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; _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |