diff options
author | 2012-07-22 19:32:00 +0100 | |
---|---|---|
committer | 2012-07-22 19:32:00 +0100 | |
commit | 3384fb98845dc014770caa224d61a2effd258ca5 (patch) | |
tree | 8189134a4938632e2d06e93af04c9fc1f3c2d4c9 /kernel/relay.c | |
parent | Merge branches 'regulator-core', 'regulator-dt' and 'regulator-dummy' into regulator-next (diff) | |
parent | regulator: add new lp8788 regulator driver (diff) | |
download | wireguard-linux-3384fb98845dc014770caa224d61a2effd258ca5.tar.xz wireguard-linux-3384fb98845dc014770caa224d61a2effd258ca5.zip |
Merge branch 'regulator-drivers' into regulator-next
Diffstat (limited to 'kernel/relay.c')
-rw-r--r-- | kernel/relay.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/kernel/relay.c b/kernel/relay.c index ab56a1764d4d..e8cd2027abbd 100644 --- a/kernel/relay.c +++ b/kernel/relay.c @@ -1235,6 +1235,7 @@ static ssize_t subbuf_splice_actor(struct file *in, struct splice_pipe_desc spd = { .pages = pages, .nr_pages = 0, + .nr_pages_max = PIPE_DEF_BUFFERS, .partial = partial, .flags = flags, .ops = &relay_pipe_buf_ops, @@ -1302,8 +1303,8 @@ static ssize_t subbuf_splice_actor(struct file *in, ret += padding; out: - splice_shrink_spd(pipe, &spd); - return ret; + splice_shrink_spd(&spd); + return ret; } static ssize_t relay_file_splice_read(struct file *in, |