diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2018-09-15 21:43:46 +0300 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2018-09-23 22:55:30 +0300 |
commit | d3dce35aabf1a0f3359c1129cc668850c00f95ea (patch) | |
tree | cd1cc57f5b3863f45a4e9f7a781f5bdc02b62c19 | |
parent | 6e6e4b2f73294ea363852273cb4196c9d792f6b6 (diff) | |
download | u-boot-d3dce35aabf1a0f3359c1129cc668850c00f95ea.tar.xz |
efi_loader: check parameter new_handle of efi_file_open()
We should not check parameter file twice.
We should check parameter new_handle.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
-rw-r--r-- | lib/efi_loader/efi_file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/efi_loader/efi_file.c b/lib/efi_loader/efi_file.c index e090cf017c..0753a36a20 100644 --- a/lib/efi_loader/efi_file.c +++ b/lib/efi_loader/efi_file.c @@ -218,7 +218,7 @@ static efi_status_t EFIAPI efi_file_open(struct efi_file_handle *file, open_mode, attributes); /* Check parameters */ - if (!file || !file || !file_name) { + if (!file || !new_handle || !file_name) { ret = EFI_INVALID_PARAMETER; goto out; } |