summaryrefslogtreecommitdiff
path: root/arch/s390/kernel/smp.c
diff options
context:
space:
mode:
authorHeiko Carstens <hca@linux.ibm.com>2021-12-13 21:00:57 +0300
committerHeiko Carstens <hca@linux.ibm.com>2021-12-16 21:58:07 +0300
commitfcfcba6dfc9a57da9c816667c20614ddfd4def10 (patch)
treedec76a7c8d5ee224f323f1062ca56c383e080bae /arch/s390/kernel/smp.c
parentb6b486ecef02916af8a430397ccd5a68c5b967b1 (diff)
downloadlinux-fcfcba6dfc9a57da9c816667c20614ddfd4def10.tar.xz
s390/smp: fix memblock_phys_free() vs memblock_free() confusion
memblock_phys_free() is used on a virtual address. Fix this by using memblock_free(). Note: this doesn't fix a bug currently, since virtual and physical addresses are identical. Reviewed-by: Alexander Gordeev <agordeev@linux.ibm.com> Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Diffstat (limited to 'arch/s390/kernel/smp.c')
-rw-r--r--arch/s390/kernel/smp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/kernel/smp.c b/arch/s390/kernel/smp.c
index 2e280e812dfd..2590c31a8fc3 100644
--- a/arch/s390/kernel/smp.c
+++ b/arch/s390/kernel/smp.c
@@ -880,7 +880,7 @@ void __init smp_detect_cpus(void)
/* Add CPUs present at boot */
__smp_rescan_cpus(info, true);
- memblock_phys_free((unsigned long)info, sizeof(*info));
+ memblock_free(info, sizeof(*info));
}
/*