提交 fcfcba6d 编写于 作者: H Heiko Carstens

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: NAlexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: NHeiko Carstens <hca@linux.ibm.com>
上级 b6b486ec
...@@ -880,7 +880,7 @@ void __init smp_detect_cpus(void) ...@@ -880,7 +880,7 @@ void __init smp_detect_cpus(void)
/* Add CPUs present at boot */ /* Add CPUs present at boot */
__smp_rescan_cpus(info, true); __smp_rescan_cpus(info, true);
memblock_phys_free((unsigned long)info, sizeof(*info)); memblock_free(info, sizeof(*info));
} }
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册