diff options
author | Miklos Szeredi <mszeredi@redhat.com> | 2017-02-16 09:08:20 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-02-23 11:44:35 -0500 |
commit | 80a0477665d050e6e8aed0519f62a691a573fd07 (patch) | |
tree | 31c9b517dc7fc71fa024910d71fb96fa5e5c33ab /fs | |
parent | 7283448f8273e661c09001909345af2e41fc4a5f (diff) |
fuse: fix uninitialized flags in pipe_buffer
commit 84588a93d097bace24b9233930f82511d4f34210 upstream.
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Fixes: d82718e348fe ("fuse_dev_splice_read(): switch to add_to_pipe()")
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/fuse/dev.c | 1 |
1 files changed, 1 insertions, 0 deletions
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, | |||
1376 | * code can Oops if the buffer persists after module unload. | 1376 | * code can Oops if the buffer persists after module unload. |
1377 | */ | 1377 | */ |
1378 | bufs[page_nr].ops = &nosteal_pipe_buf_ops; | 1378 | bufs[page_nr].ops = &nosteal_pipe_buf_ops; |
1379 | bufs[page_nr].flags = 0; | ||
1379 | ret = add_to_pipe(pipe, &bufs[page_nr++]); | 1380 | ret = add_to_pipe(pipe, &bufs[page_nr++]); |
1380 | if (unlikely(ret < 0)) | 1381 | if (unlikely(ret < 0)) |
1381 | break; | 1382 | break; |