Commit 0e1e4a22 authored by Al Viro's avatar Al Viro

[s390] copy_oldmem_kernel() - WRITE is "data source", not destination

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent c67f1fd2
......@@ -153,7 +153,7 @@ int copy_oldmem_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 (copy_oldmem_iter(&iter, src, count) < count)
return -EFAULT;
return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment