Files
linux/mm
Andrew Morton 676758bdb7 [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>
2006-03-24 07:33:26 -08:00
..
2006-03-24 07:33:25 -08:00
2006-03-24 07:33:25 -08:00
2005-06-24 00:06:41 -07:00
2006-03-22 07:54:06 -08:00
2006-03-22 07:54:06 -08:00
2006-03-22 07:53:58 -08:00
2006-03-22 07:54:06 -08:00
2006-01-11 18:42:13 -08:00
2006-03-22 07:54:01 -08:00
2006-03-24 07:33:26 -08:00
2006-03-22 07:54:01 -08:00
2006-03-02 08:33:07 -08:00
2005-10-29 21:40:42 -07:00
2005-04-16 15:20:36 -07:00
2006-03-22 07:54:02 -08:00
2006-03-22 07:54:02 -08:00
2006-02-08 07:52:58 -08:00
2006-03-22 07:54:06 -08:00
2006-03-22 07:53:57 -08:00
2006-03-23 07:38:07 -08:00
2006-03-22 07:54:06 -08:00