From: Heiko Carstens Date: Mon, 13 Dec 2021 17:59:02 +0000 (+0100) Subject: s390/sclp: fix memblock_phys_free() vs memblock_free() confusion X-Git-Tag: v5.17-rc1~197^2~15 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b6b486ecef02916af8a430397ccd5a68c5b967b1;p=thirdparty%2Fkernel%2Flinux.git s390/sclp: 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 Signed-off-by: Heiko Carstens --- diff --git a/drivers/s390/char/sclp_early.c b/drivers/s390/char/sclp_early.c index b64feab62caa8..e9943a86c361e 100644 --- a/drivers/s390/char/sclp_early.c +++ b/drivers/s390/char/sclp_early.c @@ -139,7 +139,7 @@ int __init sclp_early_get_core_info(struct sclp_core_info *info) } sclp_fill_core_info(info, sccb); out: - memblock_phys_free((unsigned long)sccb, length); + memblock_free(sccb, length); return rc; }