Skip to content

Commit 4e8477a

Browse files
Alexander Gordeevhcahca
authored andcommitted
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>
1 parent 50ed48c commit 4e8477a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

net/iucv/iucv.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1081,8 +1081,7 @@ static int iucv_message_receive_iprmdata(struct iucv_path *path,
10811081
size = (size < 8) ? size : 8;
10821082
for (array = buffer; size > 0; array++) {
10831083
copy = min_t(size_t, size, array->length);
1084-
memcpy((u8 *)(addr_t) array->address,
1085-
rmmsg, copy);
1084+
memcpy(phys_to_virt(array->address), rmmsg, copy);
10861085
rmmsg += copy;
10871086
size -= copy;
10881087
}

0 commit comments

Comments
 (0)