Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754686AbZA1Qqh (ORCPT ); Wed, 28 Jan 2009 11:46:37 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751747AbZA1Qq1 (ORCPT ); Wed, 28 Jan 2009 11:46:27 -0500 Received: from smtp3.ultrahosting.com ([74.213.175.254]:37639 "EHLO smtp.ultrahosting.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751798AbZA1Qq0 (ORCPT ); Wed, 28 Jan 2009 11:46:26 -0500 Date: Wed, 28 Jan 2009 11:42:36 -0500 (EST) From: Christoph Lameter X-X-Sender: cl@qirst.com To: Daisuke Nishimura cc: Andrew Morton , LKML , linux-mm Subject: Re: [PATCH] migration: migrate_vmas should check "vma" In-Reply-To: <20090128162619.2205befd.nishimura@mxp.nes.nec.co.jp> Message-ID: References: <20090128162619.2205befd.nishimura@mxp.nes.nec.co.jp> User-Agent: Alpine 1.10 (DEB 962 2008-03-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 496 Lines: 11 On Wed, 28 Jan 2009, Daisuke Nishimura wrote: > migrate_vmas() should check "vma" not "vma->vm_next" for for-loop condition. The loop condition is checked before vma = vma->vm_next. So the last iteration of the loop will now be run with vma = NULL? -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/