diff options
| author | Michael Brown | 2020-11-24 16:42:43 +0100 |
|---|---|---|
| committer | Michael Brown | 2020-11-24 16:42:43 +0100 |
| commit | 0b5467b658b5adf7682885980d9a2596597d272b (patch) | |
| tree | ba25cb1e7442e03b6b94f4b3d5d833cdbb787202 /src/interface | |
| parent | [efi] Allow initialisation via SNP interface even while claimed (diff) | |
| download | ipxe-0b5467b658b5adf7682885980d9a2596597d272b.tar.gz ipxe-0b5467b658b5adf7682885980d9a2596597d272b.tar.xz ipxe-0b5467b658b5adf7682885980d9a2596597d272b.zip | |
[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.c | 1 |
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 ) ); } |
