summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2022-09-15 18:55:18 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2022-11-25 13:01:20 -0500
commit0e1e4a2238d465199e8f11eb7a779bcb224a0505 (patch)
tree902ea3680ee476c5c72244540fc429919d7088c1
parentc67f1fd2b2b79299e617eca1c17f168d19e58510 (diff)
downloadlwn-0e1e4a2238d465199e8f11eb7a779bcb224a0505.tar.gz
lwn-0e1e4a2238d465199e8f11eb7a779bcb224a0505.zip
[s390] copy_oldmem_kernel() - WRITE is "data source", not destination
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r--arch/s390/kernel/crash_dump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/kernel/crash_dump.c b/arch/s390/kernel/crash_dump.c
index dd74fe664ed1..7ad7f20320b9 100644
--- a/arch/s390/kernel/crash_dump.c
+++ b/arch/s390/kernel/crash_dump.c
@@ -153,7 +153,7 @@ int copy_oldmem_kernel(void *dst, unsigned long src, size_t count)
kvec.iov_base = dst;
kvec.iov_len = count;
- iov_iter_kvec(&iter, WRITE, &kvec, 1, count);
+ iov_iter_kvec(&iter, READ, &kvec, 1, count);
if (copy_oldmem_iter(&iter, src, count) < count)
return -EFAULT;
return 0;