From: Anton Vorontsov Date: Mon, 29 Dec 2008 06:40:35 +0000 (+0000) Subject: powerpc/mm: Make clear_fixmap() actually work X-Git-Tag: v2.6.29-rc1~50^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7021d86afa6f3a8bf76218ac97f5847a6d985730;p=pandora-kernel.git powerpc/mm: Make clear_fixmap() actually work The clear_fixmap() routine issues map_page() with flags set to 0. Currently this causes a BUG_ON() inside the map_page(), as it assumes that a PTE should be clear before mapping. This patch makes the map_page() to trigger the BUG_ON() only if the flags were set. Signed-off-by: Anton Vorontsov Acked-by: Kumar Gala Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed