[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [xen master] xen/arm: Check return code from fdt_finish_reservemap()
commit dd0f6ea412a60b4a2efbebace21e2de02c6d3502 Author: Michal Orzel <michal.orzel@xxxxxxx> AuthorDate: Mon Mar 3 09:56:48 2025 +0100 Commit: Michal Orzel <michal.orzel@xxxxxxx> CommitDate: Tue Mar 4 08:54:53 2025 +0100 xen/arm: Check return code from fdt_finish_reservemap() fdt_finish_reservemap() may fail (with -FDT_ERR_NOSPACE) in which case further DTB creation (in prepare_dtb_hwdom()) makes no sense. Fix it. Fixes: 13bb63b754e4 ("device tree,arm: supply a flat device tree to dom0") Signed-off-by: Michal Orzel <michal.orzel@xxxxxxx> Reviewed-by: Bertrand Marquis <bertrand.marquis@xxxxxxx> --- xen/arch/arm/domain_build.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xen/arch/arm/domain_build.c b/xen/arch/arm/domain_build.c index e760198d86..fea1382d49 100644 --- a/xen/arch/arm/domain_build.c +++ b/xen/arch/arm/domain_build.c @@ -2038,7 +2038,9 @@ static int __init prepare_dtb_hwdom(struct domain *d, struct kernel_info *kinfo) if ( ret < 0 ) goto err; - fdt_finish_reservemap(kinfo->fdt); + ret = fdt_finish_reservemap(kinfo->fdt); + if ( ret ) + goto err; ret = handle_node(d, kinfo, dt_host, default_p2mt); if ( ret ) -- generated by git-patchbot for /home/xen/git/xen.git#master
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |