# HG changeset patch # User Paul Durrant <paul.durrant@citrix.com> # Date 1323948278 0 # Node ID 8c9916e8d01ada87d5494c22c763cbdf259e2e6f # Parent 03138a08366b895d79e143119d4c9c72833cdbcd Fix grant_table v2 status mapping. Signed-off-by: Paul Durrant <paul.durrant@citrix.com> diff -r 03138a08366b -r 8c9916e8d01a xen/arch/x86/mm.c --- a/xen/arch/x86/mm.c Fri Dec 09 16:19:36 2011 +0000 +++ b/xen/arch/x86/mm.c Thu Dec 15 11:24:38 2011 +0000 @@ -4699,7 +4699,7 @@ static int xenmem_add_to_physmap_once( (xatp->idx & XENMAPIDX_grant_table_status) ) { idx &= ~XENMAPIDX_grant_table_status; - if ( xatp->idx < nr_status_frames(d->grant_table) ) + if ( idx < nr_status_frames(d->grant_table) ) mfn = virt_to_mfn(d->grant_table->status[idx]); } else