[PATCH 2/4] of: reserved_mem: keep the reservation when node_init returns -EBUSY

sashiko-bot at kernel.org sashiko-bot at kernel.org
Wed Nov 4 08:29:46 PST 2026


> fdt_init_reserved_mem_node() treats any error from a region's init function
> as "this node is unusable" and calls memblock_phys_free() on the whole
> range, although the range was reserved earlier during the FDT scan by code
> unrelated to that init function. Give -EBUSY the meaning "cannot be used as
> described, but must stay reserved" and skip the release for it. Nothing
> returns -EBUSY from node_init today. The next patch does, to refuse a CMA
> pool overlapping the kernel image, which without this would free
> [_text, _end) rather than protect it.
> 
> Suggested-by: Pratyush Yadav (Google) <pratyush at kernel.org>
> Signed-off-by: Radhey Shyam Pandey <radhey.shyam.pandey at amd.com>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261103162429.2053989-1-radhey.shyam.pandey@amd.com?part=2




More information about the kexec mailing list