summaryrefslogtreecommitdiff
path: root/arch/s390
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2022-10-23 13:29:08 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2022-11-25 13:01:21 -0500
commit77729412acde120712f5793e9134c2b1cbd1ee02 (patch)
treeaf45fd26c62166e317d3dea6f14a73f61a41c083 /arch/s390
parent4ba48e1bae5f68af24d8d71d4f28de9eb658af1d (diff)
[s390] memcpy_real(): WRITE is "data source", not destination...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/s390')
-rw-r--r--arch/s390/mm/maccess.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/mm/maccess.c b/arch/s390/mm/maccess.c
index 1571cdcb0c50..753b006c8ea5 100644
--- a/arch/s390/mm/maccess.c
+++ b/arch/s390/mm/maccess.c
@@ -128,7 +128,7 @@ int memcpy_real(void *dest, unsigned long src, size_t count)
kvec.iov_base = dest;
kvec.iov_len = count;
- iov_iter_kvec(&iter, WRITE, &kvec, 1, count);
+ iov_iter_kvec(&iter, READ, &kvec, 1, count);
if (memcpy_real_iter(&iter, src, count) < count)
return -EFAULT;
return 0;