Searched hist:"15 b5c183" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/arch/s390/kernel/ |
H A D | uv.c | 15b5c183 Mon Dec 13 12:16:38 CST 2021 Heiko Carstens <hca@linux.ibm.com> s390/uv: fix memblock virtual vs physical address confusion
memblock_alloc_try_nid() returns a virtual address, however in error case the allocated memory is incorrectly freed with memblock_phys_free(). Properly use memblock_free() instead, and pass a physical address to uv_init() to fix this.
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>
|