Skip to contentSkip to conversation

fix an obviously inverted check in offline_page()

PATCH New Jan Beulich 1 participant 1 message Sep 9, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix an obviously inverted check in offline_page()

xen/common/page_alloc.c +1 -1
@@ -610,7 +610,7 @@ int offline_page(unsigned long mfn, int 
     int ret = 0;
     struct page_info *pg;
 
-    if ( mfn_valid(mfn) )
+    if ( !mfn_valid(mfn) )
     {
         dprintk(XENLOG_WARNING,
                 "try to offline page out of range %lx\n", mfn);