]> git.baikalelectronics.ru Git - kernel.git/commit
compat breakage in preadv() and pwritev()
authorAl Viro <viro@ZenIV.linux.org.uk>
Sun, 13 Mar 2011 23:24:46 +0000 (23:24 +0000)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 13 Mar 2011 23:29:07 +0000 (16:29 -0700)
commit34e3649a82b4afc385fae05bca72924d526c3f15
treedf96d439962f923eee668e46dbff574b3603ca3f
parentd86444708c6743e5e6441e7f83a22fe2b956ed95
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 <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/compat.c