From 0b5467b658b5adf7682885980d9a2596597d272b Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Tue, 24 Nov 2020 15:42:43 +0000 Subject: [PATCH] [efi] Report correct error when failing to unload a vetoed driver Signed-off-by: Michael Brown --- src/interface/efi/efi_veto.c | 1 + 1 file changed, 1 insertion(+) 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 ) ); }