Skip to content

Commit

Permalink
zcore: WRITE is "data source", not destination...
Browse files Browse the repository at this point in the history
[ Upstream commit 4ba48e1 ]

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Stable-dep-of: 6dd88fd ("vhost-scsi: unbreak any layout for response")
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
Al Viro authored and gregkh committed Feb 9, 2023
1 parent 98653e5 commit cefb33f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/s390/char/zcore.c
Expand Up @@ -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;
Expand Down

0 comments on commit cefb33f

Please sign in to comment.