]> git.baikalelectronics.ru Git - uboot.git/commit
efi_loader: fix GetNextVariableName
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Tue, 22 Jan 2019 19:10:46 +0000 (20:10 +0100)
committerAlexander Graf <agraf@suse.de>
Wed, 13 Feb 2019 08:40:06 +0000 (09:40 +0100)
commita9ac96832075e7af28ae574767ce738c16d7418c
tree91bbad4aef4f9e63c16dbbebf4dd33cbccbdaff5
parenteec6701629060355c58a6058bc8767daf071e8d9
efi_loader: fix GetNextVariableName

Our current implementation of GetNextVariableName() first collects all EFI
variables. If none is found at all hexport_r() returns a zero length string
terminated by \0 and the value 1 as number of bytes in the returned buffer.

In this case GetNextVariableName() has to return EFI_NOT_FOUND.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
lib/efi_loader/efi_variable.c