diff options
author | Alexander Gordeev <agordeev@linux.ibm.com> | 2024-02-16 13:13:26 +0100 |
---|---|---|
committer | Heiko Carstens <hca@linux.ibm.com> | 2024-03-13 09:23:45 +0100 |
commit | 4e8477aeb46dfe74e829c06ea588dd00ba20c8cc (patch) | |
tree | 78678ceceb302bcb2267b9839b787001753e27b7 /net | |
parent | 50ed48c80fecbe17218afed4f8bed005c802976c (diff) |
s390/iucv: fix receive buffer virtual vs physical address confusion
Fix IUCV_IPBUFLST-type buffers virtual vs physical address confusion.
This does not fix a bug since virtual and physical address spaces are
currently the same.
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
Reviewed-by: Alexandra Winter <wintera@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/iucv/iucv.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/iucv/iucv.c b/net/iucv/iucv.c index 5b56ae6612dd..15b3a958fa08 100644 --- a/net/iucv/iucv.c +++ b/net/iucv/iucv.c @@ -1081,8 +1081,7 @@ static int iucv_message_receive_iprmdata(struct iucv_path *path, size = (size < 8) ? size : 8; for (array = buffer; size > 0; array++) { copy = min_t(size_t, size, array->length); - memcpy((u8 *)(addr_t) array->address, - rmmsg, copy); + memcpy(phys_to_virt(array->address), rmmsg, copy); rmmsg += copy; size -= copy; } |