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;
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to