aboutsummaryrefslogtreecommitdiff
path: root/stand
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2019-05-03 21:09:25 +0000
committerWarner Losh <imp@FreeBSD.org>2019-05-03 21:09:25 +0000
commit6f21634d55d0a4562cc73a28da50afa1ddec6c25 (patch)
tree457afd3beb5cf9f3c6d7946fb05b48c8935dd17f /stand
parentaacd73b871a0d7faec37eb33628b0e8d46d95a20 (diff)
downloadsrc-6f21634d55d0a4562cc73a28da50afa1ddec6c25.tar.gz
src-6f21634d55d0a4562cc73a28da50afa1ddec6c25.zip
When we can't get memory, trying again right away is going to
fail. Rather than print N failure messages, bail on the first one.
Notes
Notes: svn path=/head/; revision=347060
Diffstat (limited to 'stand')
-rw-r--r--stand/efi/boot1/boot1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stand/efi/boot1/boot1.c b/stand/efi/boot1/boot1.c
index 32ca635562dd..cc20cee468ff 100644
--- a/stand/efi/boot1/boot1.c
+++ b/stand/efi/boot1/boot1.c
@@ -328,7 +328,7 @@ probe_handle(EFI_HANDLE h, EFI_DEVICE_PATH *imgpath, BOOLEAN *preferred)
devinfo = malloc(sizeof(*devinfo));
if (devinfo == NULL) {
DPRINTF("\nFailed to allocate devinfo\n");
- continue;
+ break;
}
devinfo->dev = blkio;
devinfo->devpath = devpath;