diff options
| author | Emmanuel Vadot <manu@FreeBSD.org> | 2016-10-31 11:30:01 +0000 |
|---|---|---|
| committer | Emmanuel Vadot <manu@FreeBSD.org> | 2016-10-31 11:30:01 +0000 |
| commit | 69804fa204098f46f728b66ed7e34075b930d761 (patch) | |
| tree | f6e03c9135b64a48bd5e9630292d80854168f3b6 /sys | |
| parent | 0362dbbd683bdb6a18828784371f1693fd2018e3 (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/boot/efi/loader/main.c | 5 |
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); } |
