diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2022-09-16 01:55:18 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-02-09 13:28:03 +0300 |
commit | 0332bdec060af671755bf5e330fe4e19eea6c783 (patch) | |
tree | c8dcfce538ed5c557c6966d285fec71d6b4a259d /arch/s390 | |
parent | ccbe22d4843da9aef2a9cf9ac7a6253430640b05 (diff) | |
download | linux-0332bdec060af671755bf5e330fe4e19eea6c783.tar.xz |
copy_oldmem_kernel() - WRITE is "data source", not destination
[ Upstream commit 0e1e4a2238d465199e8f11eb7a779bcb224a0505 ]
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>
Diffstat (limited to 'arch/s390')
-rw-r--r-- | arch/s390/kernel/crash_dump.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/kernel/crash_dump.c b/arch/s390/kernel/crash_dump.c index e4ef67e4da0a..a19a2763e8d4 100644 --- a/arch/s390/kernel/crash_dump.c +++ b/arch/s390/kernel/crash_dump.c @@ -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; |