From: Andrew Morton Date: Fri, 24 Mar 2006 11:18:14 +0000 (-0800) Subject: [PATCH] msync: fix return value X-Git-Tag: v2.6.17-rc1~899 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=676758bdb7bfca8413a85203921746f446e237be;p=pandora-kernel.git [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 Cc: Nick Piggin Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed