Skip to contentSkip to conversation

: fix_gnttab2

PATCH In review Paul Durrant 1 participant 2 messages Dec 15, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 : fix_gnttab2

# HG changeset patch
# User Paul Durrant <[email protected]> # Date 1323948142 0
# Node ID cc984d786b1f57b22830ac767413564011ffa837 # Parent 03138a08366b895d79e143119d4c9c72833cdbcd [mq]: fix_gnttab2

xen/arch/x86/mm.c +1 -1
diff -r 03138a08366b -r cc984d786b1f 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
#1 lore raw

Sorry for the stupid comment. Another one coming up after a qpop/qpush...

Quoted 25 lines

-----Original Message-----
From: Paul Durrant [mailto:[email protected]]
Sent: 15 December 2011 11:24
To: [email protected]
Cc: Paul Durrant
Subject: [PATCH] [mq]: fix_gnttab2

# HG changeset patch
# User Paul Durrant <[email protected]> # Date 1323948142 0 # Node ID cc984d786b1f57b22830ac767413564011ffa837
# Parent 03138a08366b895d79e143119d4c9c72833cdbcd
[mq]: fix_gnttab2

diff -r 03138a08366b -r cc984d786b1f xen/arch/x86/mm.c

xen/arch/x86/mm.c +1 -1
@@ -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