aboutsummaryrefslogtreecommitdiffstats
path: root/src/interface
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2020-11-24 15:42:43 +0000
committerMichael Brown <mcb30@ipxe.org>2020-11-24 15:42:43 +0000
commit0b5467b658b5adf7682885980d9a2596597d272b (patch)
treeba25cb1e7442e03b6b94f4b3d5d833cdbb787202 /src/interface
parent1295b4acff1f2014261c40d9f9d2107ffd668d92 (diff)
downloadipxe-0b5467b658b5adf7682885980d9a2596597d272b.tar.gz
[efi] Report correct error when failing to unload a vetoed driver
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/interface')
-rw-r--r--src/interface/efi/efi_veto.c1
1 files changed, 1 insertions, 0 deletions
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 ) );
}