diff options
author | Andrew Morton <akpm@osdl.org> | 2006-03-24 12:18:14 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-24 16:33:26 +0100 |
commit | 676758bdb7bfca8413a85203921746f446e237be (patch) | |
tree | 23c731f429652e16f2cdba98cd503eaa059f929b /arch/sparc/Makefile | |
parent | [PATCH] msync(MS_SYNC): don't hold mmap_sem while syncing (diff) | |
download | linux-676758bdb7bfca8413a85203921746f446e237be.tar.xz linux-676758bdb7bfca8413a85203921746f446e237be.zip |
[PATCH] msync: fix return value
msync() does a strange thing. Essentially:
vma = find_vma();
for ( ; ; ) {
if (!vma)
return -ENOMEM;
...
vma = vma->vm_next;
}
so an msync() request which starts within or before a valid VMA and which ends
within or beyond the final VMA will incorrectly return -ENOMEM.
Fix.
Cc: Hugh Dickins <hugh@veritas.com>
Cc: Nick Piggin <nickpiggin@yahoo.com.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/sparc/Makefile')
0 files changed, 0 insertions, 0 deletions