From: Miklos Szeredi Date: Thu, 16 Feb 2017 14:08:20 +0000 (+0100) Subject: fuse: fix uninitialized flags in pipe_buffer X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=84588a93d097bace24b9233930f82511d4f34210;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git fuse: fix uninitialized flags in pipe_buffer Signed-off-by: Miklos Szeredi Fixes: d82718e348fe ("fuse_dev_splice_read(): switch to add_to_pipe()") Cc: # 4.9+ --- diff --git a/fs/fuse/dev.c b/fs/fuse/dev.c index b656e1805f04..f11792672977 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;