[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [IA64] Fixed arch_domain_create



# HG changeset patch
# User awilliam@xxxxxxxxxxx
# Node ID b9a76893a1eeadfef7709d5ec0c0a12dcf520274
# Parent  c4d21a4d5b9a181207972390c5c068c118ed02ac
[IA64] Fixed arch_domain_create

This patch fixed the process when xenheap shortage occurred
in arch_domain_create().

Signed-off-by: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>

diff -r c4d21a4d5b9a -r b9a76893a1ee xen/arch/ia64/xen/domain.c
--- a/xen/arch/ia64/xen/domain.c        Thu Feb 16 04:33:52 2006
+++ b/xen/arch/ia64/xen/domain.c        Fri Feb 17 21:34:17 2006
@@ -251,9 +251,12 @@
        return 0;
 
 fail_nomem:
-       free_xenheap_page(d->shared_info);
-       xfree(d->arch.mm);
-       pgd_free(d->arch.mm->pgd);
+       if (d->arch.mm->pgd != NULL)
+           pgd_free(d->arch.mm->pgd);
+       if (d->arch.mm != NULL)
+           xfree(d->arch.mm);
+       if (d->shared_info != NULL)
+           free_xenheap_page(d->shared_info);
        return -ENOMEM;
 }
 

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.