mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
libxl: events: Assert that libxl_ctx_free is not called from a hook
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@eu.citrix.com> Acked-by: Ian Campbell <ian.campbell@citrix.com> Tested-by: Ian Campbell <ian.campbell@citrix.com> Release-Acked-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
This commit is contained in:
1 parent
d8582553aa
commit
f49f9b4114
1 file changed
+2
@@ -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);
|
||||
|
||||
|
||||