From: Daisuke Nishimura Date: Mon, 26 Oct 2009 23:50:23 +0000 (-0700) Subject: mm: don't call pte_unmap() against an improper pte X-Git-Tag: v2.6.32-rc6~60 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c36987e2ef32e1bb7850379515f21187cba44754;p=pandora-kernel.git mm: don't call pte_unmap() against an improper pte There are some places where we do like: pte = pte_map(); do { (do break in some conditions) } while (pte++, ...); pte_unmap(pte - 1); But if the loop breaks at the first loop, pte_unmap() unmaps invalid pte. This patch is a fix for this problem. Signed-off-by: Daisuke Nishimura Reviewd-by: KAMEZAWA Hiroyuki Acked-by: Hugh Dickins Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed