fuse: fix uninitialized flags in pipe_buffer
authorMiklos Szeredi <mszeredi@redhat.com>
Thu, 16 Feb 2017 14:08:20 +0000 (15:08 +0100)
committerMiklos Szeredi <mszeredi@redhat.com>
Thu, 16 Feb 2017 14:08:20 +0000 (15:08 +0100)
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Fixes: d82718e348fe ("fuse_dev_splice_read(): switch to add_to_pipe()")
Cc: <stable@vger.kernel.org> # 4.9+
fs/fuse/dev.c

index b656e1805f04ac9131844e337e44ee2725d16fec..f11792672977d2280ec7fc301f81e9b1b1ba7741 100644 (file)
@@ -1376,6 +1376,7 @@ static ssize_t fuse_dev_splice_read(struct file *in, loff_t *ppos,
                 * code can Oops if the buffer persists after module unload.
                 */
                bufs[page_nr].ops = &nosteal_pipe_buf_ops;
+               bufs[page_nr].flags = 0;
                ret = add_to_pipe(pipe, &bufs[page_nr++]);
                if (unlikely(ret < 0))
                        break;