Still open the network interface when EFI_OPEN_PROTOCOL_EXCLUSIVE failed.

Not all UEFI implementations support this protocol.
This commit is contained in:
Andrew Turner 2016-02-03 14:34:25 +00:00
parent 817dd2573e
commit 1485c016ba

View File

@ -309,8 +309,8 @@ efinet_dev_init()
status = BS->OpenProtocol(h, &sn_guid, (void **)&net,
IH, 0, EFI_OPEN_PROTOCOL_EXCLUSIVE);
if (status != EFI_SUCCESS) {
printf("Unable to open network interface %d\n", i);
continue;
printf("Unable to open network interface %d for "
"exclusive access\n", i);
}
dif->dif_unit = i;