mirror of https://github.com/ipxe/ipxe.git
[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>pull/1437/head
parent
7adce3a13e
commit
ea5762d9d0
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue