mirror of
https://github.com/nxp-imx/linux-imx.git
synced 2025-07-07 09:55:19 +02:00
s390/iucv: fix receive buffer virtual vs physical address confusion
[ Upstream commit 4e8477aeb4
]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
7ad21517c3
commit
d8d4da5c68
|
@ -1090,8 +1090,7 @@ static int iucv_message_receive_iprmdata(struct iucv_path *path,
|
||||||
size = (size < 8) ? size : 8;
|
size = (size < 8) ? size : 8;
|
||||||
for (array = buffer; size > 0; array++) {
|
for (array = buffer; size > 0; array++) {
|
||||||
copy = min_t(size_t, size, array->length);
|
copy = min_t(size_t, size, array->length);
|
||||||
memcpy((u8 *)(addr_t) array->address,
|
memcpy(phys_to_virt(array->address), rmmsg, copy);
|
||||||
rmmsg, copy);
|
|
||||||
rmmsg += copy;
|
rmmsg += copy;
|
||||||
size -= copy;
|
size -= copy;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user