[efi] Report correct error when failing to unload a vetoed driver

Signed-off-by: Michael Brown <mcb30@ipxe.org>
pull/181/head
Michael Brown 2020-11-24 15:42:43 +00:00
parent 1295b4acff
commit 0b5467b658
1 changed files with 1 additions and 0 deletions

View File

@ -226,6 +226,7 @@ void efi_veto_unload ( void ) {
DBGC ( driver, "EFIVETO unloading %s (%s)\n",
efi_handle_name ( driver ), veto->name );
if ( ( efirc = bs->UnloadImage ( driver ) ) != 0 ) {
rc = -EEFI ( efirc );
DBGC ( driver, "EFIVETO could not unload %s: %s\n",
efi_handle_name ( driver ), strerror ( rc ) );
}