diff options
author | Heiko Carstens <hca@linux.ibm.com> | 2021-12-13 18:59:02 +0100 |
---|---|---|
committer | Heiko Carstens <hca@linux.ibm.com> | 2021-12-16 19:58:06 +0100 |
commit | b6b486ecef02916af8a430397ccd5a68c5b967b1 (patch) | |
tree | 21f2459f2f399a2724e16faa7b77ea07f85cc0ff /drivers/s390/char | |
parent | 893d4d9c62ecb32bad7843fc31ec9eb740600758 (diff) | |
download | linux-b6b486ecef02916af8a430397ccd5a68c5b967b1.tar.bz2 |
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 <agordeev@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Diffstat (limited to 'drivers/s390/char')
-rw-r--r-- | drivers/s390/char/sclp_early.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/s390/char/sclp_early.c b/drivers/s390/char/sclp_early.c index b64feab62caa..e9943a86c361 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; } |