summaryrefslogtreecommitdiffstats
path: root/src/interface
diff options
context:
space:
mode:
authorMichael Brown2025-03-29 19:41:01 +0100
committerMichael Brown2025-03-29 19:44:34 +0100
commitea5762d9d0ebe61bf58f7b8c019bf06c14a693d8 (patch)
tree35d4ffdca763386a839d205a9e13c818381a66b9 /src/interface
parent[efi] Add various well-known GUIDs encountered in WiFi boot (diff)
downloadipxe-ea5762d9d0ebe61bf58f7b8c019bf06c14a693d8.tar.gz
ipxe-ea5762d9d0ebe61bf58f7b8c019bf06c14a693d8.tar.xz
ipxe-ea5762d9d0ebe61bf58f7b8c019bf06c14a693d8.zip
[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>
Diffstat (limited to 'src/interface')
-rw-r--r--src/interface/efi/efi_driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/interface/efi/efi_driver.c b/src/interface/efi/efi_driver.c
index 56918deba..5e8d253f0 100644
--- a/src/interface/efi/efi_driver.c
+++ b/src/interface/efi/efi_driver.c
@@ -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 */