diff --git a/xen/common/memory.c b/xen/common/memory.c index 586a1da8e1..68fe636d08 100644 --- a/xen/common/memory.c +++ b/xen/common/memory.c @@ -316,9 +316,6 @@ int guest_remove_page(struct domain *d, unsigned long gmfn) rc = guest_physmap_remove_page(d, gmfn, mfn, 0); - if ( !rc && test_and_clear_bit(_PGT_pinned, &page->u.inuse.type_info) ) - put_page_and_type(page); - if ( !rc && test_and_clear_bit(_PGC_allocated, &page->count_info) ) put_page(page);