Daisuke Nishimura c36987e2ef 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 <nishimura@mxp.nes.nec.co.jp>
Reviewd-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Acked-by: Hugh Dickins <hugh.dickins@tiscali.co.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2009-10-29 07:39:32 -07:00
..
2009-04-01 08:59:13 -07:00
2009-06-16 19:47:28 -07:00
2009-09-22 07:17:41 -07:00
2009-10-29 07:39:31 -07:00
2009-10-08 07:36:38 -07:00
2009-09-23 07:39:41 -07:00
2009-10-29 07:39:29 -07:00
2009-09-22 07:17:35 -07:00
2009-09-22 07:17:40 -07:00
2009-09-27 11:39:25 -07:00
2009-09-24 08:41:47 -04:00
2008-06-12 18:05:41 -07:00
2009-10-12 17:04:42 +09:00
2007-10-20 01:27:18 +02:00
2009-10-01 16:11:12 -07:00
2009-06-23 12:50:05 -07:00
2009-09-22 07:17:29 -07:00