[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@jp.fujitsu.com>
This commit is contained in:
awilliam@xenbuild.aw committed 2006-02-17 14:34:17 -07:00
1 parent 1c79b8d7a8
commit 90a1cd66c1
1 file changed
+6 -3
+6 -3
View File
@@ -251,9 +251,12 @@ int arch_domain_create(struct domain *d)
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;
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.