# HG changeset patch # User Paul Durrant <paul.durrant@citrix.com> # Date 1323948142 0 # Node ID cc984d786b1f57b22830ac767413564011ffa837 # Parent 03138a08366b895d79e143119d4c9c72833cdbcd [mq]: fix_gnttab2 diff -r 03138a08366b -r cc984d786b1f 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:22:22 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
Sorry for the stupid comment. Another one coming up after a qpop/qpush...> -----Original Message----- > From: Paul Durrant [mailto:paul.durrant@citrix.com] > Sent: 15 December 2011 11:24 > To: xen-devel@lists.xensource.com > Cc: Paul Durrant > Subject: [PATCH] [mq]: fix_gnttab2 > > # HG changeset patch > # User Paul Durrant <paul.durrant@citrix.com> # Date 1323948142 0 # > Node ID cc984d786b1f57b22830ac767413564011ffa837 > # Parent 03138a08366b895d79e143119d4c9c72833cdbcd > [mq]: fix_gnttab2 > > diff -r 03138a08366b -r cc984d786b1f 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:22:22 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