[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH 1/6] libxl: events: Assert that libxl_ctx_free is not called from a hook
On Thu, 2014-11-27 at 18:27 +0000, Ian Jackson wrote: > No-one in their right mind would do this, and if they did everything > would definitely collapse. Arrange that if this happens, we crash > ASAP. > > Signed-off-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx> Acked-by: Ian Campbell <ian.campbell@xxxxxxxxxx> > --- > tools/libxl/libxl.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/tools/libxl/libxl.c b/tools/libxl/libxl.c > index de23fec..c111f27 100644 > --- a/tools/libxl/libxl.c > +++ b/tools/libxl/libxl.c > @@ -148,6 +148,8 @@ int libxl_ctx_free(libxl_ctx *ctx) > { > if (!ctx) return 0; > > + assert(!ctx->osevent_in_hook); > + > int i; > GC_INIT(ctx); > _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |