From f47991b540eb1f598c4ec974aed0512e7c7fd297 Mon Sep 17 00:00:00 2001 From: imp Date: Fri, 3 May 2019 21:09:25 +0000 Subject: [PATCH] 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. --- stand/efi/boot1/boot1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;