]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Re-enable loader efi http boot and fix dv_open bug if dv_init failed
authorbcran <bcran@FreeBSD.org>
Wed, 26 Jun 2019 03:06:57 +0000 (03:06 +0000)
committerbcran <bcran@FreeBSD.org>
Wed, 26 Jun 2019 03:06:57 +0000 (03:06 +0000)
commit2d82ac48561871957f7ac99ee1a9b2422a798577
tree626479ca4e9e0d4f8a7919a9d9cc0f0911bd0a1e
parent7b9ebd04c7f3fe286dac41c043aadc18ab699eee
Re-enable loader efi http boot and fix dv_open bug if dv_init failed

The code in efihttp.c was assuming that dv_open wouldn't be called if
dv_init failed. But the dv_init return value is currently ignored.

Add a new variable, `efihttp_init_done` and only proceed in dv_open if
it's true. This fixes the loader on systems without efi http support.
stand/efi/libefi/efihttp.c
stand/efi/loader/conf.c