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:
parent
0bb44b8a22
commit
f47991b540
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user