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.jack...@eu.citrix.com> Acked-by: Ian Campbell <ian.campb...@citrix.com> Tested-by: Ian Campbell <ian.campb...@citrix.com> Release-Acked-by: Konrad Rzeszutek Wilk <konrad.w...@oracle.com> --- tools/libxl/libxl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/libxl/libxl.c b/tools/libxl/libxl.c index 74c00dc..55ef535 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); -- 1.7.10.4 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel