]> git.baikalelectronics.ru Git - uboot.git/commit
efi_loader: SetVariable() fix illegal return
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Mon, 23 Sep 2019 20:18:09 +0000 (22:18 +0200)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Mon, 23 Sep 2019 20:53:25 +0000 (22:53 +0200)
commit3fa62335abaf803e0bc5a7a44148409fedc09c20
treea74a01735f4a354e84a9463489d442b6484af3cb
parent1148132ceb5a537aeb165d8b96567b4980a7bf32
efi_loader: SetVariable() fix illegal return

We always have to return via EFI_EXIT() from EFIAPI functions.

Coverity reported an unreachable line and a resource leak.

Fixes: commit 51391fc19b5d ("efi_loader: variable: support APPEND_WRITE")
Reported-by: Coverity Scan CID 253575, CID 184095
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
lib/efi_loader/efi_variable.c