ia64/xen-unstable

changeset 19381:9fc957e63f8d

x86: Assert non-zero refcount on entry to put_page().
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue Mar 17 15:40:25 2009 +0000 (2009-03-17)
parents 92a6cc5eae2e
children f8201aea88a4
files xen/arch/x86/mm.c
line diff
     1.1 --- a/xen/arch/x86/mm.c	Tue Mar 17 15:29:57 2009 +0000
     1.2 +++ b/xen/arch/x86/mm.c	Tue Mar 17 15:40:25 2009 +0000
     1.3 @@ -1929,6 +1929,7 @@ void put_page(struct page_info *page)
     1.4      unsigned long nx, x, y = page->count_info;
     1.5  
     1.6      do {
     1.7 +        ASSERT((y & PGC_count_mask) != 0);
     1.8          x  = y;
     1.9          nx = x - 1;
    1.10      }