svn commit: r347060 - head/stand/efi/boot1
Warner Losh
imp at FreeBSD.org
Fri May 3 21:09:27 UTC 2019
Author: imp
Date: Fri May 3 21:09:25 2019
New Revision: 347060
URL: https://svnweb.freebsd.org/changeset/base/347060
Log:
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.
Modified:
head/stand/efi/boot1/boot1.c
Modified: head/stand/efi/boot1/boot1.c
==============================================================================
--- head/stand/efi/boot1/boot1.c Fri May 3 21:06:34 2019 (r347059)
+++ head/stand/efi/boot1/boot1.c Fri May 3 21:09:25 2019 (r347060)
@@ -328,7 +328,7 @@ probe_handle(EFI_HANDLE h, EFI_DEVICE_PATH *imgpath, B
devinfo = malloc(sizeof(*devinfo));
if (devinfo == NULL) {
DPRINTF("\nFailed to allocate devinfo\n");
- continue;
+ break;
}
devinfo->dev = blkio;
devinfo->devpath = devpath;
More information about the svn-src-head
mailing list