]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
fs: pass on flags in compat_writev
authorChristoph Hellwig <hch@lst.de>
Fri, 16 Jun 2017 09:08:24 +0000 (11:08 +0200)
committerSeth Forshee <seth.forshee@canonical.com>
Sun, 25 Jun 2017 15:36:21 +0000 (10:36 -0500)
BugLink: http://bugs.launchpad.net/bugs/1700372
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>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
fs/read_write.c

index b69e687ff55e0e6d65cbbd562306f4bbd4047bd4..ec9e88a2f0deb9d1740d6e61c15a97246fbe3242 100644 (file)
@@ -1234,7 +1234,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)