From 49c372ae74b7c184b5aaedc3497735859f4c7d8e Mon Sep 17 00:00:00 2001 From: Heiko Carstens Date: Wed, 17 Jan 2024 15:35:16 +0100 Subject: [PATCH] s390/hypfs_sprp: fix virtual vs physical address confusion Add missing virt_to_phys() translation to __hypfs_sprp_diag304(). This doesn't fix a bug since virtual and physical addresses are currently the same. Reviewed-by: Alexander Gordeev Signed-off-by: Heiko Carstens --- arch/s390/hypfs/hypfs_sprp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/s390/hypfs/hypfs_sprp.c b/arch/s390/hypfs/hypfs_sprp.c index f5f7e78ddc0c8..e66b4de8913f0 100644 --- a/arch/s390/hypfs/hypfs_sprp.c +++ b/arch/s390/hypfs/hypfs_sprp.c @@ -25,7 +25,7 @@ static inline unsigned long __hypfs_sprp_diag304(void *data, unsigned long cmd) { - union register_pair r1 = { .even = (unsigned long)data, }; + union register_pair r1 = { .even = virt_to_phys(data), }; asm volatile("diag %[r1],%[r3],0x304\n" : [r1] "+&d" (r1.pair) -- 2.30.2