Skip to content

Commit 0e1e4a2

Browse files
author
Al Viro
committed
[s390] copy_oldmem_kernel() - WRITE is "data source", not destination
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent c67f1fd commit 0e1e4a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/s390/kernel/crash_dump.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ int copy_oldmem_kernel(void *dst, unsigned long src, size_t count)
153153

154154
kvec.iov_base = dst;
155155
kvec.iov_len = count;
156-
iov_iter_kvec(&iter, WRITE, &kvec, 1, count);
156+
iov_iter_kvec(&iter, READ, &kvec, 1, count);
157157
if (copy_oldmem_iter(&iter, src, count) < count)
158158
return -EFAULT;
159159
return 0;

0 commit comments

Comments
 (0)