kho: fix missing early_memunmap() call in kho_populate()
authorRan Xiaokai <ran.xiaokai@zte.com.cn>
Thu, 12 Feb 2026 11:11:45 +0000 (11:11 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 12 Feb 2026 23:45:57 +0000 (15:45 -0800)
commit34df6c4734db4765d6ec2b0f0b61d4aec4a8f345
treebba3bbf48de440389d0e6cf0396819d268391f82
parent55f8b4518d14b7436f70defe27faba4eca0cd4e1
kho: fix missing early_memunmap() call in kho_populate()

Patch series "two fixes in kho_populate()", v3.

This patch (of 2):

kho_populate() returns without calling early_memunmap() on success path,
this will cause early ioremap virtual address space leak.

Link: https://lkml.kernel.org/r/20260212111146.210086-1-ranxiaokai627@163.com
Link: https://lkml.kernel.org/r/20260212111146.210086-2-ranxiaokai627@163.com
Fixes: b50634c5e84a ("kho: cleanup error handling in kho_populate()")
Signed-off-by: Ran Xiaokai <ran.xiaokai@zte.com.cn>
Reviewed-by: Pratyush Yadav <pratyush@kernel.org>
Cc: Alexander Graf <graf@amazon.com>
Cc: Mike Rapoport <rppt@kernel.org>
Cc: Pasha Tatashin <pasha.tatashin@soleen.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
kernel/liveupdate/kexec_handover.c