Skip to content

Commit 4ba48e1

Browse files
author
Al Viro
committed
[s390] zcore: WRITE is "data source", not destination...
Signed-off-by: Al Viro <[email protected]>
1 parent 355d2c2 commit 4ba48e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/s390/char/zcore.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ static inline int memcpy_hsa_kernel(void *dst, unsigned long src, size_t count)
103103

104104
kvec.iov_base = dst;
105105
kvec.iov_len = count;
106-
iov_iter_kvec(&iter, WRITE, &kvec, 1, count);
106+
iov_iter_kvec(&iter, READ, &kvec, 1, count);
107107
if (memcpy_hsa_iter(&iter, src, count) < count)
108108
return -EIO;
109109
return 0;

0 commit comments

Comments
 (0)