summaryrefslogtreecommitdiff
path: root/mm/nommu.c
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2009-05-07 14:41:37 +0400
committerLinus Torvalds <torvalds@linux-foundation.org>2009-05-07 23:03:41 +0400
commit8c9ed899b44c19e81859fbb0e9d659fe2f8630fc (patch)
tree6cc4ebd5d050accad0d706e596f8ea1609d26bc9 /mm/nommu.c
parentee7fee0b91ceb1c057c67fcc573b2d8dfe6d92c5 (diff)
downloadlinux-8c9ed899b44c19e81859fbb0e9d659fe2f8630fc.tar.xz
NOMMU: Don't check vm_region::vm_start is page aligned in add_nommu_region()
Don't check vm_region::vm_start is page aligned in add_nommu_region() because the region may reflect some non-page-aligned mapped file, such as could be obtained from RomFS XIP. Signed-off-by: David Howells <dhowells@redhat.com> Acked-by: Greg Ungerer <gerg@uclinux.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/nommu.c')
-rw-r--r--mm/nommu.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/mm/nommu.c b/mm/nommu.c
index 67cd1a487ee6..b571ef707428 100644
--- a/mm/nommu.c
+++ b/mm/nommu.c
@@ -515,8 +515,6 @@ static void add_nommu_region(struct vm_region *region)
validate_nommu_regions();
- BUG_ON(region->vm_start & ~PAGE_MASK);
-
parent = NULL;
p = &nommu_region_tree.rb_node;
while (*p) {