Title: [6958] branches/2009R1/mm/nommu.c: Bug[#5331]
- Revision
- 6958
- Author
- bernds
- Date
- 2009-07-09 19:00:49 -0500 (Thu, 09 Jul 2009)
Log Message
Bug[#5331]
As Graf points out, we're using the wrong mask when calculating the
start points for page protection.
Modified Paths
Diff
Modified: branches/2009R1/mm/nommu.c (6957 => 6958)
--- branches/2009R1/mm/nommu.c 2009-07-09 15:11:52 UTC (rev 6957)
+++ branches/2009R1/mm/nommu.c 2009-07-10 00:00:49 UTC (rev 6958)
@@ -430,7 +430,7 @@
long len = vma->vm_end - vma->vm_start;
#ifdef CONFIG_MPU
- long start = vma->vm_start & (PAGE_SIZE - 1);
+ long start = vma->vm_start & PAGE_MASK;
while (start < vma->vm_end) {
protect_page(mm, start, 0);
start += PAGE_SIZE;
@@ -460,7 +460,7 @@
struct vm_area_struct *vma = vml->vma;
#ifdef CONFIG_MPU
- long start = vma->vm_start & (PAGE_SIZE - 1);
+ long start = vma->vm_start & PAGE_MASK;
while (start < vma->vm_end) {
protect_page(mm, start, vma->vm_flags);
start += PAGE_SIZE;
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits