]> git.baikalelectronics.ru Git - uboot.git/commit
efi_loader: LocateDevicePath() incorrect parameter check
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Fri, 10 May 2019 17:21:41 +0000 (19:21 +0200)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Sun, 12 May 2019 18:54:22 +0000 (20:54 +0200)
commitdf456bd8c6ea94ea061e1b6f2cd07a23a2cc5d4f
tree6b684193c9ee261990282e54035840632f799856
parent0c9afc06d616d6268fec325a7c367db5439001b3
efi_loader: LocateDevicePath() incorrect parameter check

A parameter check in LocateDevicePath() does not match the requirements of
the UEFI spec.

If device is NULL, only return EFI_INVALID_PARAMETER if a matching handle
is found.

Cf. UEFI SCT II specification (2017)3.3.7 LocateDevicePath(), 5.1.3.7.3

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
lib/efi_loader/efi_boottime.c