]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[efi] Report correct error when failing to unload a vetoed driver
authorMichael Brown <mcb30@ipxe.org>
Tue, 24 Nov 2020 15:42:43 +0000 (15:42 +0000)
committerMichael Brown <mcb30@ipxe.org>
Tue, 24 Nov 2020 15:42:43 +0000 (15:42 +0000)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/interface/efi/efi_veto.c

index 0abaa30141c7f1b41143a8e5910fa809b3c88c0d..c2c812ed335da724f82cec7276fb6090377197e6 100644 (file)
@@ -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 ) );
                }