]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
loader.efi: replace HandleProtocol() with OpenProtocol()
authortsoome <tsoome@FreeBSD.org>
Tue, 6 Aug 2019 19:27:27 +0000 (19:27 +0000)
committertsoome <tsoome@FreeBSD.org>
Tue, 6 Aug 2019 19:27:27 +0000 (19:27 +0000)
commit4c5e8846c448cda9a1f51cbe7bfb3e79581cf219
treef004f4fea2622ee65723b2fb27ae17ca2007d0b1
parent53df6f39ef6368e80a3bc98a7c2deb6194ae158e
loader.efi: replace HandleProtocol() with OpenProtocol()

The HandleProtocol() is deprecated interface and we should use OpenProtocol()
instead. Moreover, in some firmware implementation(s), the HandleProtocol()
does return device path using static storage, so we can not keep the value
returned there. With same firmware, the OpenProtocol() does return data we
do not need to clone.

Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D21162
stand/efi/boot1/proto.c
stand/efi/gptboot/proto.c
stand/efi/libefi/devpath.c
stand/efi/libefi/efinet.c
stand/efi/libefi/efipart.c
stand/efi/loader/efi_main.c
stand/efi/loader/framebuffer.c
stand/efi/loader/main.c