[efi] Return success from Stop() if driver is already stopped

Return success if asked to stop driving a device that we are not
currently driving.  This avoids propagating spurious errors to an
external caller of DisconnectController().

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2025-03-29 18:41:01 +00:00
parent 7adce3a13e
commit ea5762d9d0

View File

@@ -307,7 +307,7 @@ efi_driver_stop ( EFI_DRIVER_BINDING_PROTOCOL *driver __unused,
if ( ! efidev ) {
DBGCP ( device, "EFIDRV %s is not started\n",
efi_handle_name ( device ) );
return EFI_DEVICE_ERROR;
return 0;
}
/* Raise TPL */