aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorEmmanuel Vadot <manu@FreeBSD.org>2016-10-31 11:30:01 +0000
committerEmmanuel Vadot <manu@FreeBSD.org>2016-10-31 11:30:01 +0000
commit69804fa204098f46f728b66ed7e34075b930d761 (patch)
treef6e03c9135b64a48bd5e9630292d80854168f3b6 /sys
parent0362dbbd683bdb6a18828784371f1693fd2018e3 (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/boot/efi/loader/main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/boot/efi/loader/main.c b/sys/boot/efi/loader/main.c
index c6f30a9e4229..8bc85d077d3e 100644
--- a/sys/boot/efi/loader/main.c
+++ b/sys/boot/efi/loader/main.c
@@ -237,6 +237,11 @@ find_currdev(EFI_LOADED_IMAGE *img, struct devsw **dev, int *unit,
}
}
+ /* Try to fallback on first device */
+ if (devsw[0] != NULL) {
+ *dev = devsw[0];
+ return (0);
+ }
return (ENOENT);
}