diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2006-12-21 17:23:03 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-01-09 01:03:01 -0500 |
commit | 6aa3e1e9447134ccda8b04b91c4ba8182274a78e (patch) | |
tree | da637c9a708b93bcacc4f4284fba5cc2190c996f /fs | |
parent | efa06708fe77190f31bed5c3cb5da49e211240f5 (diff) |
[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 <david@gibson.dropbear.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions