From: Heiko Carstens Date: Wed, 17 Jan 2024 14:35:16 +0000 (+0100) Subject: s390/hypfs_sprp: fix virtual vs physical address confusion X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=49c372ae74b7c184b5aaedc3497735859f4c7d8e;p=linux.git 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 --- 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)