提交 20223f0f 编写于 作者: C Christoph Hellwig 提交者: Linus Torvalds

fs: pass on flags in compat_writev

Fixes: 793b80ef ("vfs: pass a flags argument to vfs_readv/vfs_writev")
Signed-off-by: NChristoph Hellwig <hch@lst.de>
Cc: stable@vger.kernel.org
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 3bee1970
...@@ -1285,7 +1285,7 @@ static size_t compat_writev(struct file *file, ...@@ -1285,7 +1285,7 @@ static size_t compat_writev(struct file *file,
if (!(file->f_mode & FMODE_CAN_WRITE)) if (!(file->f_mode & FMODE_CAN_WRITE))
goto out; 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: out:
if (ret > 0) if (ret > 0)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册