aboutsummaryrefslogtreecommitdiffstats
path: root/fs/pipe.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/pipe.c')
-rw-r--r--fs/pipe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/pipe.c b/fs/pipe.c
index 034bffac3f97..cd4ccf07e772 100644
--- a/fs/pipe.c
+++ b/fs/pipe.c
@@ -287,7 +287,7 @@ pipe_read(struct kiocb *iocb, const struct iovec *_iov,
287 if (unlikely(total_len == 0)) 287 if (unlikely(total_len == 0))
288 return 0; 288 return 0;
289 289
290 iov_iter_init(&iter, iov, nr_segs, total_len, 0); 290 iov_iter_init(&iter, READ, iov, nr_segs, total_len);
291 291
292 do_wakeup = 0; 292 do_wakeup = 0;
293 ret = 0; 293 ret = 0;