Skip to content

Commit

Permalink
NOMMU: Don't check vm_region::vm_start is page aligned in add_nommu_r…
Browse files Browse the repository at this point in the history
…egion()

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>
  • Loading branch information
dhowells authored and torvalds committed May 7, 2009
1 parent ee7fee0 commit 8c9ed89
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions mm/nommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 8c9ed89

Please sign in to comment.