summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2017-06-16 11:08:24 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-06-24 07:11:12 +0200
commit222aa34e5d791217aaba7096eae78d5bba42b30b (patch)
treeb67f48a40d064128e316387fdcf7264129b5a137
parent050639ef5810e8ad17fb6a426eff3c63e616350c (diff)
downloadlinux-stable-222aa34e5d791217aaba7096eae78d5bba42b30b.tar.gz
linux-stable-222aa34e5d791217aaba7096eae78d5bba42b30b.tar.bz2
linux-stable-222aa34e5d791217aaba7096eae78d5bba42b30b.zip
fs: pass on flags in compat_writev
commit 20223f0f39ea9d31ece08f04ac79f8c4e8d98246 upstream. Fixes: 793b80ef14af ("vfs: pass a flags argument to vfs_readv/vfs_writev") Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--fs/read_write.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/read_write.c b/fs/read_write.c
index 190e0d362581..e479e24dcd4c 100644
--- a/fs/read_write.c
+++ b/fs/read_write.c
@@ -1232,7 +1232,7 @@ static size_t compat_writev(struct file *file,
if (!(file->f_mode & FMODE_CAN_WRITE))
goto out;
- ret = compat_do_readv_writev(WRITE, file, vec, vlen, pos, 0);
+ ret = compat_do_readv_writev(WRITE, file, vec, vlen, pos, flags);
out:
if (ret > 0)