From: Al Viro Date: Sun, 13 Mar 2011 23:24:46 +0000 (+0000) Subject: compat breakage in preadv() and pwritev() X-Git-Tag: v2.6.38~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c44ed965be7a84afaa07543c04eb97a5dfe93422;p=pandora-kernel.git compat breakage in preadv() and pwritev() Fix for a dumb preadv()/pwritev() compat bug - unlike the native variants, the compat_... ones forget to check FMODE_P{READ,WRITE}, so e.g. on pipe the native preadv() will fail with -ESPIPE and compat one will act as readv() and succeed. Not critical, but it's a clear bug with trivial fix, so IMO it's OK for -final. Signed-off-by: Al Viro Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed