[PATCH] mm: fix remap_pte_range BUG
authorHugh Dickins <hugh@veritas.com>
Sat, 25 Jun 2005 21:54:33 +0000 (14:54 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sat, 25 Jun 2005 23:24:26 +0000 (16:24 -0700)
commit2d15cab85b85a56cc886037cab43cc292923ff22
tree55de7526dfb766067821d552892ad43b32f78c35
parent1e8a81c5a37907bc082025d3468718116dca1eeb
[PATCH] mm: fix remap_pte_range BUG

Out-of-tree user of remap_pfn_range hit kernel BUG at mm/memory.c:1112!  It
passes an unrounded size to remap_pfn_range, which was okay before 2.6.12,
but misses remap_pte_range's new end condition.  An audit of all the other
ptwalks confirms that this is the only one so exposed.

Signed-off-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/memory.c