diff options
author | andrew <andrew@FreeBSD.org> | 2016-02-03 14:34:25 +0000 |
---|---|---|
committer | andrew <andrew@FreeBSD.org> | 2016-02-03 14:34:25 +0000 |
commit | 960d14828b1b4d2b62d2fe8f0f67e4325b81cadf (patch) | |
tree | 4106bf73b9e416eca2650ae227c678b687ca9b82 | |
parent | fcb93180f54ede665ea60822a8bd1766002246d0 (diff) | |
download | FreeBSD-src-960d14828b1b4d2b62d2fe8f0f67e4325b81cadf.zip FreeBSD-src-960d14828b1b4d2b62d2fe8f0f67e4325b81cadf.tar.gz |
Still open the network interface when EFI_OPEN_PROTOCOL_EXCLUSIVE failed.
Not all UEFI implementations support this protocol.
-rw-r--r-- | sys/boot/efi/libefi/efinet.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/boot/efi/libefi/efinet.c b/sys/boot/efi/libefi/efinet.c index d9ecdcc..b7888aa 100644 --- a/sys/boot/efi/libefi/efinet.c +++ b/sys/boot/efi/libefi/efinet.c @@ -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; |