mirror of
https://github.com/ipxe/ipxe
synced 2026-02-02 07:52:48 +03:00
[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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user