projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b6b486e
)
s390/smp: fix memblock_phys_free() vs memblock_free() confusion
author
Heiko Carstens
<hca@linux.ibm.com>
Mon, 13 Dec 2021 18:00:57 +0000
(19:00 +0100)
committer
Heiko Carstens
<hca@linux.ibm.com>
Thu, 16 Dec 2021 18:58:07 +0000
(19:58 +0100)
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>
arch/s390/kernel/smp.c
patch
|
blob
|
history
diff --git
a/arch/s390/kernel/smp.c
b/arch/s390/kernel/smp.c
index 2e280e812dfd143636550c6980382a12636c4b44..2590c31a8fc30da1fd7e15a543fa41b468acc574 100644
(file)
--- 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));
}
/*