]> xenbits.xensource.com Git - xen.git/commit
EFI/Arm64: don't clobber DTB pointer
authorJan Beulich <jbeulich@suse.com>
Wed, 14 Oct 2020 12:13:16 +0000 (14:13 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 14 Oct 2020 12:13:16 +0000 (14:13 +0200)
commit884ef07f4f66b9d12fc4811047db95ba649db85c
tree07290fc9b961eaf078d44280bbea7babdac4bb87
parente3daad6283659794f4d70508fee23a340e42a93e
EFI/Arm64: don't clobber DTB pointer

read_section() needs to be more careful: efi_arch_use_config_file()
may have found a DTB file (but without modules), and there may be no DTB
specified in the EFI config file. In this case the pointer to the blob
must not be overwritten with NULL when no ".dtb" section is present
either.

Fixes: 8a71d50ed40b ("efi: Enable booting unified hypervisor/kernel/initrd images")
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/common/efi/boot.c