Skip to contentSkip to conversation

Fix grant_table v2 status mapping

PATCH New Paul Durrant 1 participant 1 message Dec 15, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix grant_table v2 status mapping

# HG changeset patch
# User Paul Durrant <[email protected]> # Date 1323948278 0
# Node ID 8c9916e8d01ada87d5494c22c763cbdf259e2e6f # Parent 03138a08366b895d79e143119d4c9c72833cdbcd Fix grant_table v2 status mapping.

xen/arch/x86/mm.c +1 -1
diff -r 03138a08366b -r 8c9916e8d01a xen/arch/x86/mm.c
@@ -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