/[linux-patches]/genpatches-2.6/trunk/2.6.16/1006_linux-2.6.16.7.patch
Gentoo

Contents of /genpatches-2.6/trunk/2.6.16/1006_linux-2.6.16.7.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 413 - (show annotations) (download) (as text)
Wed Apr 19 09:28:44 2006 UTC (14 years, 6 months ago) by johnm
File MIME type: text/x-diff
File size: 369 byte(s)
apply 2.6.16.7
1 diff --git a/mm/madvise.c b/mm/madvise.c
2 index af3d573..4e19615 100644
3 --- a/mm/madvise.c
4 +++ b/mm/madvise.c
5 @@ -168,6 +168,9 @@ static long madvise_remove(struct vm_are
6 return -EINVAL;
7 }
8
9 + if ((vma->vm_flags & (VM_SHARED|VM_WRITE)) != (VM_SHARED|VM_WRITE))
10 + return -EACCES;
11 +
12 mapping = vma->vm_file->f_mapping;
13
14 offset = (loff_t)(start - vma->vm_start)

  ViewVC Help
Powered by ViewVC 1.1.20