diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2018-09-15 20:43:46 +0200 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2018-09-23 21:55:30 +0200 |
commit | d3dce35aabf1a0f3359c1129cc668850c00f95ea (patch) | |
tree | cd1cc57f5b3863f45a4e9f7a781f5bdc02b62c19 | |
parent | 6e6e4b2f73294ea363852273cb4196c9d792f6b6 (diff) | |
download | u-boot-d3dce35aabf1a0f3359c1129cc668850c00f95ea.zip u-boot-d3dce35aabf1a0f3359c1129cc668850c00f95ea.tar.gz u-boot-d3dce35aabf1a0f3359c1129cc668850c00f95ea.tar.bz2 |
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 e090cf0..0753a36 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; } |