david/ipxe
Archived
1
0

[efi] Report errors from attempting to disconnect existing drivers

Modified-by: Michael Brown <mcb30@ipxe.org>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Curtis Larsen 2014-08-05 16:45:01 +01:00 committed by Michael Brown
parent c77859931d
commit 27e9ee147a

View File

@ -495,7 +495,14 @@ static int efi_driver_connect ( EFI_HANDLE device ) {
DBGC2_EFI_PROTOCOLS ( device, device );
DBGC ( device, "EFIDRV %p %s disconnecting existing drivers\n",
device, efi_handle_name ( device ) );
bs->DisconnectController ( device, NULL, NULL );
if ( ( efirc = bs->DisconnectController ( device, NULL,
NULL ) ) != 0 ) {
rc = -EEFI ( efirc );
DBGC ( device, "EFIDRV %p %s could not disconnect existing "
"drivers: %s\n", device, efi_handle_name ( device ),
strerror ( rc ) );
/* Ignore the error and attempt to connect our drivers */
}
DBGC2 ( device, "EFIDRV %p %s after disconnecting:\n",
device, efi_handle_name ( device ) );
DBGC2_EFI_PROTOCOLS ( device, device );