summaryrefslogtreecommitdiff
path: root/lib/efi_loader/efi_variable.c
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2018-10-03 23:55:38 +0200
committerAlexander Graf <agraf@suse.de>2018-10-16 15:53:15 +0200
commit1e1e1c27c5b46acfdc8927002baa7d4cb9a888db (patch)
tree1f72c0218de621e5840ca5e071482ed3f6e8d8c5 /lib/efi_loader/efi_variable.c
parent0801d4d2fbceb04b4f1983fdd7c2dd5ae728fd74 (diff)
efi_loader: execute efi_save_gd() first
If DEBUG is defined we may be calling EFI_CALL already during the initialization of the EFI subsystem. We must make sure efi_save_gd() has already been called at that moment. Anyway it is better to have this call in one location instead of three. This fixes an illegal memory access occurring since 4e6b5d6503ce ("efi_loader: create root node") with DEBUG = 1. Fixes: 4e6b5d6503ce ("efi_loader: create root node") Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'lib/efi_loader/efi_variable.c')
0 files changed, 0 insertions, 0 deletions