ia64/xen-unstable
changeset 2045:5f6716a0d4a5
bitkeeper revision 1.1108.33.40 (410f5c93REhZb_Qkev1WSI8kAbtcKg)
Fixed bug in page allocator.
Fixed bug in page allocator.
author | kaf24@scramble.cl.cam.ac.uk |
---|---|
date | Tue Aug 03 09:36:19 2004 +0000 (2004-08-03) |
parents | be651e93909d |
children | 37da92a66bd8 |
files | xen/common/page_alloc.c |
line diff
1.1 --- a/xen/common/page_alloc.c Tue Aug 03 09:36:00 2004 +0000 1.2 +++ b/xen/common/page_alloc.c Tue Aug 03 09:36:19 2004 +0000 1.3 @@ -397,8 +397,8 @@ struct pfn_info *alloc_domheap_pages(str 1.4 { 1.5 pg[i].u.inuse.domain = d; 1.6 wmb(); /* Domain pointer must be visible before updating refcnt. */ 1.7 - pg->u.inuse.count_info = PGC_allocated | 1; 1.8 - list_add_tail(&pg->list, &d->page_list); 1.9 + pg[i].u.inuse.count_info = PGC_allocated | 1; 1.10 + list_add_tail(&pg[i].list, &d->page_list); 1.11 } 1.12 1.13 spin_unlock(&d->page_alloc_lock);