mirror of
https://github.com/ipxe/ipxe
synced 2025-12-09 10:50:28 +03:00
[efi] Report correct error when failing to unload a vetoed driver
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -226,6 +226,7 @@ void efi_veto_unload ( void ) {
|
|||||||
DBGC ( driver, "EFIVETO unloading %s (%s)\n",
|
DBGC ( driver, "EFIVETO unloading %s (%s)\n",
|
||||||
efi_handle_name ( driver ), veto->name );
|
efi_handle_name ( driver ), veto->name );
|
||||||
if ( ( efirc = bs->UnloadImage ( driver ) ) != 0 ) {
|
if ( ( efirc = bs->UnloadImage ( driver ) ) != 0 ) {
|
||||||
|
rc = -EEFI ( efirc );
|
||||||
DBGC ( driver, "EFIVETO could not unload %s: %s\n",
|
DBGC ( driver, "EFIVETO could not unload %s: %s\n",
|
||||||
efi_handle_name ( driver ), strerror ( rc ) );
|
efi_handle_name ( driver ), strerror ( rc ) );
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user