From: Michael Brown Date: Tue, 24 Nov 2020 15:42:43 +0000 (+0000) Subject: [efi] Report correct error when failing to unload a vetoed driver X-Git-Tag: v1.21.1~38 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b5467b658b5adf7682885980d9a2596597d272b;p=thirdparty%2Fipxe.git [efi] Report correct error when failing to unload a vetoed driver Signed-off-by: Michael Brown --- diff --git a/src/interface/efi/efi_veto.c b/src/interface/efi/efi_veto.c index 0abaa3014..c2c812ed3 100644 --- a/src/interface/efi/efi_veto.c +++ b/src/interface/efi/efi_veto.c @@ -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 ) ); }