]> git.dujemihanovic.xyz Git - u-boot.git/commit
efi_loader: loosen check of parameters of efi_file_open()
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Thu, 13 Sep 2018 19:31:49 +0000 (21:31 +0200)
committerAlexander Graf <agraf@suse.de>
Sun, 23 Sep 2018 19:55:30 +0000 (21:55 +0200)
commitbd66588657e827904b09034957e9d5a1f9d75bac
tree70782260e725077ed2f5ba64f3c31c009d0ac262
parent1c381cebb7a67ad2b55e8271bbe344baf060cb85
efi_loader: loosen check of parameters of efi_file_open()

The UEFI spec requires that attributes are only set for when
EFI_FILE_MODE_CREATE is set in open_mode.

The SCT tries to read a directory with EFI_FILE_DIRECTORY.

As EDK2 allows this we should not be more strict.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
lib/efi_loader/efi_file.c