Must destroy grant-table maptrack table before pagetables,
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Thu, 26 Jan 2006 10:31:28 +0000 (11:31 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Thu, 26 Jan 2006 10:31:28 +0000 (11:31 +0100)
as the latter hold reference counts that maptrack entries
implicitly rely on.

Signed-off-by: Keir Fraser <keir@xensource.com>
xen/common/domain.c

index 881133b7d6b65053037840f8c44ea00a4eb55722..749d7c7fe9920aa40a17faf71f0cb89bde087673 100644 (file)
@@ -130,8 +130,8 @@ void domain_kill(struct domain *d)
     {
         for_each_vcpu(d, v)
             sched_rem_domain(v);
-        domain_relinquish_resources(d);
         gnttab_release_mappings(d);
+        domain_relinquish_resources(d);
         put_domain(d);
 
         send_guest_virq(dom0->vcpu[0], VIRQ_DOM_EXC);