From: David Gibson Date: Thu, 21 Dec 2006 22:23:03 +0000 (+1100) Subject: [POWERPC] Fix bogus BUG_ON() in in hugetlb_get_unmapped_area() X-Git-Tag: v2.6.20-rc5~35^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6aa3e1e9447134ccda8b04b91c4ba8182274a78e;p=pandora-kernel.git [POWERPC] Fix bogus BUG_ON() in in hugetlb_get_unmapped_area() The powerpc specific version of hugetlb_get_unmapped_area() makes some unwarranted assumptions about what checks have been made to its parameters by its callers. This will lead to a BUG_ON() if a 32-bit process attempts to make a hugepage mapping which extends above TASK_SIZE (4GB). I'm not sure if these assumptions came about because they were valid with earlier versions of the get_unmapped_area() path, or if it was always broken. Nonetheless this patch fixes the logic, and removes the crash. Signed-off-by: David Gibson Signed-off-by: Paul Mackerras --- Reading git-diff-tree failed