Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 May 2019 21:09:26 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r347060 - head/stand/efi/boot1
Message-ID:  <201905032109.x43L9QPS081873@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201905032109.x43L9QPS081873>