mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 22:21:40 +00:00
fs: pass on flags in compat_writev
Fixes: 793b80ef14
("vfs: pass a flags argument to vfs_readv/vfs_writev")
Signed-off-by: Christoph Hellwig <hch@lst.de>
Cc: stable@vger.kernel.org
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
3bee1970b3
commit
20223f0f39
@ -1285,7 +1285,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)
|
||||
|
Loading…
Reference in New Issue
Block a user