s390/iucv: sort out physical vs virtual pointers usage
authorAlexander Gordeev <agordeev@linux.ibm.com>
Mon, 21 Feb 2022 14:56:32 +0000 (15:56 +0100)
committerJakub Kicinski <kuba@kernel.org>
Wed, 23 Feb 2022 00:09:13 +0000 (16:09 -0800)
Fix virtual vs physical address confusion (which currently are the same).

Reviewed-by: Alexandra Winter <wintera@linux.ibm.com>
Reviewed-by: Wenjia Zhang <wenjia@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Alexandra Winter <wintera@linux.ibm.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/iucv/iucv.c

index 8f4d49a..eb0295d 100644 (file)
@@ -319,7 +319,7 @@ static inline int iucv_call_b2f0(int command, union iucv_param *parm)
  */
 static int __iucv_query_maxconn(void *param, unsigned long *max_pathid)
 {
-       unsigned long reg1 = (unsigned long)param;
+       unsigned long reg1 = virt_to_phys(param);
        int cc;
 
        asm volatile (