]> xenbits.xensource.com Git - xen.git/commitdiff
x86: Fix a typo in shadow_get_and_create_l1e().
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 23 Apr 2008 12:32:58 +0000 (13:32 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 23 Apr 2008 12:32:58 +0000 (13:32 +0100)
The typo is benign because sh_page_fault() gates the call to
shadow_get_and_create_l1e() on an equivalent test.

Signed-off-by: Tim Deegan <tim.deegan@citrix.com>
xen/arch/x86/mm/shadow/multi.c

index 7671f7ffa6e23d290fde218558c49cef242145ac..95f968940ce7a6a8cc8f284d1920e2a90f02dea3 100644 (file)
@@ -2089,7 +2089,7 @@ static shadow_l1e_t * shadow_get_and_create_l1e(struct vcpu *v,
         else 
         {
             /* Shadowing an actual guest l1 table */
-            if ( !mfn_valid(gw->l2mfn) ) return NULL; /* No guest page. */
+            if ( !mfn_valid(gw->l1mfn) ) return NULL; /* No guest page. */
             *sl1mfn = get_shadow_status(v, gw->l1mfn, SH_type_l1_shadow);
             if ( !mfn_valid(*sl1mfn) ) 
             {