From c70b3e04e86cefca335e36f883829d89583a6921 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Thu, 1 Oct 2020 23:23:10 +0100 Subject: [efi] Always enable recursion when calling ConnectController() There appears to be no reason for avoiding recursion when calling ConnectController(), and recursion provides the least surprising behaviour. Signed-off-by: Michael Brown --- src/interface/efi/efi_block.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/interface/efi/efi_block.c') diff --git a/src/interface/efi/efi_block.c b/src/interface/efi/efi_block.c index 64d1e1980..0024fbbea 100644 --- a/src/interface/efi/efi_block.c +++ b/src/interface/efi/efi_block.c @@ -237,7 +237,7 @@ static void efi_block_connect ( struct san_device *sandev ) { /* Try to connect all possible drivers to this block device */ if ( ( efirc = bs->ConnectController ( block->handle, NULL, - NULL, 1 ) ) != 0 ) { + NULL, TRUE ) ) != 0 ) { rc = -EEFI ( efirc ); DBGC ( sandev, "EFIBLK %#02x could not connect drivers: %s\n", sandev->drive, strerror ( rc ) ); -- cgit v1.2.3-55-g7522