summaryrefslogtreecommitdiffstats
path: root/fs/fuse/dev.c
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@redhat.com>2017-02-16 15:08:20 +0100
committerMiklos Szeredi <mszeredi@redhat.com>2017-02-16 15:08:20 +0100
commit84588a93d097bace24b9233930f82511d4f34210 (patch)
treeb3b90dce83da14364e0f165ecf651091257cfca6 /fs/fuse/dev.c
parent6ba4d2722d06960102c981322035239cd66f7316 (diff)
downloadop-kernel-dev-84588a93d097bace24b9233930f82511d4f34210.zip
op-kernel-dev-84588a93d097bace24b9233930f82511d4f34210.tar.gz
fuse: fix uninitialized flags in pipe_buffer
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+
Diffstat (limited to 'fs/fuse/dev.c')
-rw-r--r--fs/fuse/dev.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/fuse/dev.c b/fs/fuse/dev.c
index b656e18..f117926 100644
--- a/fs/fuse/dev.c
+++ b/fs/fuse/dev.c
@@ -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;
OpenPOWER on IntegriCloud