[PATCH v7 10/15] riscv: kexec_file: Simplify load_extra_segments()

sashiko-bot at kernel.org sashiko-bot at kernel.org
Mon Oct 26 03:42:39 PDT 2026


> Pass the kbuf fields to crash_prepare_headers() and set elf_headers
> before kexec_add_buffer(), so the error path needs no vfree()
> because arch_kimage_file_post_load_cleanup() will do it.
> 
> Cc: Palmer Dabbelt <palmer at rivosinc.com>
> Cc: Alexandre Ghiti <alexghiti at rivosinc.com>
> Cc: Baoquan He <baoquan.he at linux.dev>
> Signed-off-by: Jinjie Ruan <ruanjinjie at huawei.com>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261026075201.699550-1-ruanjinjie@huawei.com?part=10




More information about the kexec mailing list