]> xenbits.xensource.com Git - xen.git/commit
xen/arm: bootfdt: Make process_chosen_node() return int
authorHenry Wang <Henry.Wang@arm.com>
Thu, 8 Sep 2022 11:09:07 +0000 (11:09 +0000)
committerJulien Grall <jgrall@amazon.com>
Thu, 8 Sep 2022 11:23:39 +0000 (12:23 +0100)
commitd0d81052b4e7493acf8c8dc18fe1911c4ee1d2ac
tree07f7ef99ae7c0f286e784c2775e8fba2876d0c05
parent1fe16b3ed78a041e17a9625a073a6d4540fb1a20
xen/arm: bootfdt: Make process_chosen_node() return int

At the boot time, it is saner to stop booting early if an error occurs
when parsing the device tree chosen node, rather than seeing random
behavior afterwards. Therefore, this commit changes the return type of
the process_chosen_node() from void to int, and return correct errno
based on the error type.

Signed-off-by: Henry Wang <Henry.Wang@arm.com>
Reviewed-by: Michal Orzel <michal.orzel@amd.com>
Acked-by: Julien Grall <jgrall@amazon.com>
xen/arch/arm/bootfdt.c