From: "Jan Beulich" Subject: [PATCH] fix an obviously inverted check in offline_page() Date: Wed, 09 Sep 2009 16:11:22 +0100 Message-ID: <4AA7E1BA0200007800014279@vpn.id2.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Signed-off-by: Jan Beulich --- 2009-08-18.orig/xen/common/page_alloc.c 2009-09-09 13:53:29.0000000= 00 +0200 +++ 2009-08-18/xen/common/page_alloc.c 2009-09-09 13:56:53.000000000 = +0200 @@ -610,7 +610,7 @@ int offline_page(unsigned long mfn, int=20 int ret =3D 0; struct page_info *pg; =20 - if ( mfn_valid(mfn) ) + if ( !mfn_valid(mfn) ) { dprintk(XENLOG_WARNING, "try to offline page out of range %lx\n", mfn);