From: David Howells Date: Thu, 7 May 2009 10:41:37 +0000 (+0100) Subject: NOMMU: Don't check vm_region::vm_start is page aligned in add_nommu_region() X-Git-Tag: firefly_0821_release~14215 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=2.6.30-rc4-00336-g8c9ed89;p=firefly-linux-kernel-4.4.55.git 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 Acked-by: Greg Ungerer Signed-off-by: Linus Torvalds --- 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) {