efi_loader: check parameter new_handle of efi_file_open()
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sat, 15 Sep 2018 18:43:46 +0000 (20:43 +0200)
committerAlexander Graf <agraf@suse.de>
Sun, 23 Sep 2018 19:55:30 +0000 (21:55 +0200)
commitd3dce35aabf1a0f3359c1129cc668850c00f95ea
treecd1cc57f5b3863f45a4e9f7a781f5bdc02b62c19
parent6e6e4b2f73294ea363852273cb4196c9d792f6b6
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>
lib/efi_loader/efi_file.c