mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-14 00:47:26 +00:00
efi_loader: fix EFI_FILE_PROTOCOL.GetInfo()
We check the existence of files with fs_exist(). This function calls fs_close(). If we do not set the active block device again fs_opendir() fails and we do not set the flag EFI_FILE_DIRECTORY. Due to this error the `cd` command in the EFI shell fails. So let's add the missing set_blk_dev(fh) call. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
parent
0e66c10a7d
commit
823c233b7a
1 changed files with 4 additions and 0 deletions
|
@ -200,6 +200,10 @@ static struct efi_file_handle *file_open(struct file_system *fs,
|
||||||
fs_exists(fh->path)))
|
fs_exists(fh->path)))
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
|
/* fs_exists() calls fs_close(), so open file system again */
|
||||||
|
if (set_blk_dev(fh))
|
||||||
|
goto error;
|
||||||
|
|
||||||
/* figure out if file is a directory: */
|
/* figure out if file is a directory: */
|
||||||
fh->isdir = is_dir(fh);
|
fh->isdir = is_dir(fh);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue