Skip to contentSkip to conversation

NOMMU: Don't check vm_region::vm_start is page aligned in add_nommu_region()

PATCH New David Howells 1 participant 1 message May 7, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---

 mm/nommu.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
mm/nommu.c +0 -2
index cdc6f60..325706b 100644
@@ -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) {