[patch] Re: 2.3.24->2.3.25 mm changes

Benjamin C.R. LaHaise (blah@kvack.org)
Sat, 11 Dec 1999 16:14:27 -0500 (EST)


On Sat, 11 Dec 1999, Eleonora Autore wrote:

> Hi
>
> I have just had a look at the 2.3.24->30 kernels searching for whatever
> broke the mmap(2) system call and narrowed it down to 24->25 changes.
> There are quite a lot of mm changes in there so I am still narrowing it
> down further.

Thanks for narrowing it down. Eyeballing the patch came up with the
following typo (doh!) introduced in 2.3.25.

-ben

diff -ur clean/2.3.32pre2/mm/mmap.c 2.3.32pre2/mm/mmap.c
--- clean/2.3.32pre2/mm/mmap.c Mon Dec 6 23:10:56 1999
+++ 2.3.32pre2/mm/mmap.c Sat Dec 11 16:11:07 1999
@@ -545,8 +545,7 @@
mpnt->vm_page_prot = area->vm_page_prot;
mpnt->vm_flags = area->vm_flags;
mpnt->vm_ops = area->vm_ops;
- mpnt->vm_pgoff = area->vm_pgoff;
- area->vm_pgoff += (end - area->vm_start) >> PAGE_SHIFT;
+ mpnt->vm_pgoff = area->vm_pgoff + (end - area->vm_start) >> PAGE_SHIFT;
mpnt->vm_file = area->vm_file;
mpnt->vm_private_data = area->vm_private_data;
if (mpnt->vm_file)

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/