Skip to content

Commit 312df70

Browse files
author
Baoquan He
committed
copy_oldmem_kernel() - WRITE is "data source", not destination
JIRA: https://issues.redhat.com/browse/RHEL-32199 Upstream Status: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git commit 0e1e4a2 Author: Al Viro <viro@zeniv.linux.org.uk> Date: Thu Sep 15 18:55:18 2022 -0400 [s390] copy_oldmem_kernel() - WRITE is "data source", not destination Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Baoquan He <bhe@redhat.com>
1 parent 99a43b7 commit 312df70

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)