ia64/xen-unstable

changeset 18694:a6b1be5a83de

[IA64] fix XENMEM_add_to_physmap with XENMAPSPACE_mfn.

page reference count was leaked so that hvm domain wasn't freed.
This patch fixes it.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
author Isaku Yamahata <yamahata@valinux.co.jp>
date Wed Oct 29 11:02:23 2008 +0900 (2008-10-29)
parents ba163d6dc986
children 4a5acf020c0f
files xen/arch/ia64/xen/mm.c
line diff
     1.1 --- a/xen/arch/ia64/xen/mm.c	Tue Oct 28 14:31:58 2008 +0900
     1.2 +++ b/xen/arch/ia64/xen/mm.c	Wed Oct 29 11:02:23 2008 +0900
     1.3 @@ -3365,7 +3365,6 @@ arch_memory_op(int op, XEN_GUEST_HANDLE(
     1.4          /* Map at new location. */
     1.5          /* Here page->count_info = PGC_allocated | N where N >= 1*/
     1.6          __guest_physmap_add_page(d, xatp.gpfn, mfn);
     1.7 -        page = NULL; /* prevent put_page() */
     1.8  
     1.9      out:
    1.10          domain_unlock(d);