]> git.baikalelectronics.ru Git - kernel.git/commit
compat breakage in preadv() and pwritev()
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 13 Mar 2011 06:50:58 +0000 (01:50 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 13 Mar 2011 23:21:26 +0000 (19:21 -0400)
commit6150239279c61c72d8b577fed30c36067124d129
tree14092479a77973596686554b3159d4630df6a6a4
parente1f7a16fb36ab753c570c78e938d1ef479ffd927
compat breakage in preadv() and pwritev()

Fix for a dumb preadv()/pwritev() compat bug - unlike the native
variants, 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.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/compat.c