arm64/xen_boot: Fix Xen boot using GRUB2 on AARCH64
Xen is currently crashing because of malformed compatible property for the boot module. This is because the property string is not null-terminated as requested by the ePAR spec. Signed-off-by: Julien Grall <julien.grall@linaro.org> Tested-by: Fu Wei <fu.wei@linaro.org> Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
This commit is contained in:
parent
53d00ac6ef
commit
bf4d71848f
1 changed files with 1 additions and 1 deletions
|
@ -156,7 +156,7 @@ prepare_xen_module_params (struct xen_boot_binary *module, void *xen_boot_fdt)
|
||||||
grub_fdt_add_subnode (xen_boot_fdt, chosen_node, module_name);
|
grub_fdt_add_subnode (xen_boot_fdt, chosen_node, module_name);
|
||||||
|
|
||||||
retval = grub_fdt_set_prop (xen_boot_fdt, module_node, "compatible",
|
retval = grub_fdt_set_prop (xen_boot_fdt, module_node, "compatible",
|
||||||
MODULE_CUSTOM_COMPATIBLE, sizeof(MODULE_CUSTOM_COMPATIBLE) - 1);
|
MODULE_CUSTOM_COMPATIBLE, sizeof(MODULE_CUSTOM_COMPATIBLE));
|
||||||
if (retval)
|
if (retval)
|
||||||
return grub_error (GRUB_ERR_IO, "failed to update FDT");
|
return grub_error (GRUB_ERR_IO, "failed to update FDT");
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue