diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2022-09-15 19:02:47 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2022-11-25 13:01:21 -0500 |
commit | 4ba48e1bae5f68af24d8d71d4f28de9eb658af1d (patch) | |
tree | aed90aaf01909aac685449d4acd05415531e94f6 /drivers/s390/char/zcore.c | |
parent | 355d2c2798e9dc39f6714fa7ef8902c0d4c5350b (diff) | |
download | linux-4ba48e1bae5f68af24d8d71d4f28de9eb658af1d.tar.gz linux-4ba48e1bae5f68af24d8d71d4f28de9eb658af1d.tar.bz2 linux-4ba48e1bae5f68af24d8d71d4f28de9eb658af1d.zip |
[s390] zcore: WRITE is "data source", not destination...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/s390/char/zcore.c')
-rw-r--r-- | drivers/s390/char/zcore.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/s390/char/zcore.c b/drivers/s390/char/zcore.c index 6165e6aae762..83ddac1e5838 100644 --- a/drivers/s390/char/zcore.c +++ b/drivers/s390/char/zcore.c @@ -103,7 +103,7 @@ static inline int memcpy_hsa_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 (memcpy_hsa_iter(&iter, src, count) < count) return -EIO; return 0; |