提交 4ba48e1b 编写于 作者: A Al Viro

[s390] zcore: WRITE is "data source", not destination...

Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
上级 355d2c27
...@@ -103,7 +103,7 @@ static inline int memcpy_hsa_kernel(void *dst, unsigned long src, size_t count) ...@@ -103,7 +103,7 @@ static inline int memcpy_hsa_kernel(void *dst, unsigned long src, size_t count)
kvec.iov_base = dst; kvec.iov_base = dst;
kvec.iov_len = count; 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) if (memcpy_hsa_iter(&iter, src, count) < count)
return -EIO; return -EIO;
return 0; return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册