mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] NOMMU: Don't check vm_region::vm_start is page aligned in add_nommu_region()
@ 2009-05-07 10:41 David Howells
  0 siblings, 0 replies; only message in thread
From: David Howells @ 2009-05-07 10:41 UTC (permalink / raw)
  To: torvalds, akpm; +Cc: linux-kernel, David Howells, Greg Ungerer

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>
---

 mm/nommu.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)


diff --git a/mm/nommu.c b/mm/nommu.c
index cdc6f60..325706b 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) {


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-05-07 10:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-07 10:41 [PATCH] NOMMU: Don't check vm_region::vm_start is page aligned in add_nommu_region() David Howells

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®