]> git.baikalelectronics.ru Git - kernel.git/commitdiff
zcore: WRITE is "data source", not destination...
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 15 Sep 2022 23:02:47 +0000 (19:02 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Feb 2023 10:28:03 +0000 (11:28 +0100)
[ 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>
drivers/s390/char/zcore.c

index 6165e6aae762a044150df20f19c7e1e8900b076d..83ddac1e5838f1c4c6cc3f26178f41ee342ebdad 100644 (file)
@@ -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;