projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge tag 'pull-iov_iter' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
[linux-2.6-block.git]
/
fs
/
coredump.c
diff --git
a/fs/coredump.c
b/fs/coredump.c
index aaf7b362090c965427f44dc17cc91063f664259d..9a745d08c57fb3532315ffc8cecbfb0a5abce98d 100644
(file)
--- a/
fs/coredump.c
+++ b/
fs/coredump.c
@@
-857,7
+857,7
@@
static int dump_emit_page(struct coredump_params *cprm, struct page *page)
if (dump_interrupted())
return 0;
pos = file->f_pos;
- iov_iter_bvec(&iter,
WRIT
E, &bvec, 1, PAGE_SIZE);
+ iov_iter_bvec(&iter,
ITER_SOURC
E, &bvec, 1, PAGE_SIZE);
n = __kernel_write_iter(cprm->file, &iter, &pos);
if (n != PAGE_SIZE)
return 0;