efi-stub: Fix get_efi_config_table on mixed-mode setups
authorHans de Goede <hdegoede@redhat.com>
Wed, 7 Aug 2019 21:59:03 +0000 (23:59 +0200)
committerArd Biesheuvel <ard.biesheuvel@linaro.org>
Mon, 12 Aug 2019 08:58:35 +0000 (11:58 +0300)
commitb61fbc887af7a13a1c90c84c1feaeb4c9780e1e2
tree199e302eb5a66725a9d1774e47367a87098ba397
parent5f9e832c137075045d15cd6899ab0505cfb2ca4b
efi-stub: Fix get_efi_config_table on mixed-mode setups

Fix get_efi_config_table using the wrong structs when booting a
64 bit kernel on 32 bit firmware.

Fixes: 82d736ac56d7 ("Abstract out support for locating an EFI config table")
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-By: Matthew Garrett <mjg59@google.com>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Acked-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
drivers/firmware/efi/libstub/efi-stub-helper.c