aboutsummaryrefslogtreecommitdiff
path: root/lib/efi
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2019-09-07 22:34:07 +0200
committerHeinrich Schuchardt <xypron.glpk@gmx.de>2019-09-09 15:21:08 +0200
commit83a74ad14370b75051cabfc2eab01fd8556f3bdb (patch)
treebbbb1f4d57e019c0780df6d8f8162f25f76b0744 /lib/efi
parent87c4840610e037018b9df30b1a31896b0bd284a9 (diff)
downloadu-boot-83a74ad14370b75051cabfc2eab01fd8556f3bdb.zip
u-boot-83a74ad14370b75051cabfc2eab01fd8556f3bdb.tar.gz
u-boot-83a74ad14370b75051cabfc2eab01fd8556f3bdb.tar.bz2
efi_loader: correct reading of directories
EFI_FILE_PROTOCOL.Read() is used both to read files and directories. When reaching the end of a directory we always have to return buffer size zero irrespective of the incoming buffer size. (The described scenario for a Shim quirk cannot arise because every directory has at least '.' and '..' as entries.) Even when the buffer_size is too small multiple times we have to keep a reference to our last read directory entry. When we return to the start of the directory via SetPosition() we must remove the reference to a previously kept directory entry. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'lib/efi')
0 files changed, 0 insertions, 0 deletions