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.
This commit is contained in:
Warner Losh 2019-05-03 21:09:25 +00:00
parent aacd73b871
commit 6f21634d55
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=347060

View File

@ -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;