Commit 8c9ed899b44c19e81859fbb0e9d659fe2f8630fc

Authored by David Howells
Committed by Linus Torvalds
1 parent ee7fee0b91

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>

Showing 1 changed file with 0 additions and 2 deletions Side-by-side Diff

... ... @@ -515,8 +515,6 @@
515 515  
516 516 validate_nommu_regions();
517 517  
518   - BUG_ON(region->vm_start & ~PAGE_MASK);
519   -
520 518 parent = NULL;
521 519 p = &nommu_region_tree.rb_node;
522 520 while (*p) {