]> xenbits.xensource.com Git - xen.git/commit
libxl: events: STATE_AO_GC checks ao is still valid
authorIan Jackson <ian.jackson@eu.citrix.com>
Thu, 17 May 2012 13:45:40 +0000 (14:45 +0100)
committerIan Jackson <ian.jackson@eu.citrix.com>
Thu, 17 May 2012 13:45:40 +0000 (14:45 +0100)
commit79d00fc950e952a06fa986af6c58341705f06fac
treea5208a4e47ac27ced1215829d2749f1bf094fb65
parent8d204daa8f1d949092afbf4098d6e70bc40a3c20
libxl: events: STATE_AO_GC checks ao is still valid

This will catch earlier the mistake where an ao is completed while it
still has events registered: when the event callback happens for the
long-gone ao, we will crash before attempting to execute any of the
operation-specific code.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/libxl_event.c
tools/libxl/libxl_internal.h