mirror of https://github.com/ipxe/ipxe.git
[efi] Report correct error when failing to unload a vetoed driver
Signed-off-by: Michael Brown <mcb30@ipxe.org>pull/181/head
parent
1295b4acff
commit
0b5467b658
|
@ -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 ) );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue