diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2022-09-16 02:02:47 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-02-09 13:28:03 +0300 |
commit | cefb33f5be6e71339b40c81e9fa6522c4449c924 (patch) | |
tree | e7c3debc52813f703803cc55ad08a21f4c3c5867 /drivers/s390 | |
parent | 98653e51618e942b9b4af545020e1dd23baefc7d (diff) | |
download | linux-cefb33f5be6e71339b40c81e9fa6522c4449c924.tar.xz |
zcore: WRITE is "data source", not destination...
[ Upstream commit 4ba48e1bae5f68af24d8d71d4f28de9eb658af1d ]
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Stable-dep-of: 6dd88fd59da8 ("vhost-scsi: unbreak any layout for response")
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/s390')
-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; |