From: Johannes Weiner Date: Mon, 28 Apr 2008 09:11:47 +0000 (-0700) Subject: mm: fix possible off-by-one in walk_pte_range() X-Git-Tag: v2.6.26-rc1~1024 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=556637cdabcd5918c7d4a1a2679b8f86fc81e891;p=pandora-kernel.git mm: fix possible off-by-one in walk_pte_range() After the loop in walk_pte_range() pte might point to the first address after the pmd it walks. The pte_unmap() is then applied to something bad. Spotted by Roel Kluin and Andreas Schwab. Signed-off-by: Johannes Weiner Cc: Roel Kluin <12o3l@tiscali.nl> Cc: Andreas Schwab Acked-by: Matt Mackall Acked-by: Mikael Pettersson Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed