]> xenbits.xensource.com Git - people/pauldu/xeniface.git/commit
Call XenIfaceCleanup from IRP_MJ_CLEANUP
authorOwen Smith <owen.smith@citrix.com>
Mon, 27 Jun 2016 09:40:24 +0000 (10:40 +0100)
committerPaul Durrant <paul.durrant@citrix.com>
Tue, 5 Jul 2016 16:54:13 +0000 (17:54 +0100)
commit57eaf4177fd34a40836acba56436c55873049b5c
treec25eea1f579d2cb24cb761e95e322977e0f4dfd8
parent454dabb352596b5c0e76d1bc8856ef6b10239d13
Call XenIfaceCleanup from IRP_MJ_CLEANUP

XenIfaceCleanup was not called which meant that some watches, event
channels and grant entries were not cleaned up on closing the device
handle and required explicit cleanup. Add a IRP handler to call
XenIfaceCleanup from the IRP_MJ_CLEANUP for a specific FileObject.
This ensures all watches, event channels and grant entries are
destroyed in the event of the caller crashing or not gracefullly
cleaning up objects.

Signed-off-by: Owen Smith <owen.smith@citrix.com>
src/xeniface/fdo.c