Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F145585005
D17958.1778244233.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
598 B
Referenced Files
None
Subscribers
None
D17958.1778244233.diff
View Options
Index: head/stand/efi/loader/efi_main.c
===================================================================
--- head/stand/efi/loader/efi_main.c
+++ head/stand/efi/loader/efi_main.c
@@ -94,8 +94,10 @@
heapsize = 64 * 1024 * 1024;
status = BS->AllocatePages(AllocateAnyPages, EfiLoaderData,
EFI_SIZE_TO_PAGES(heapsize), &heap);
- if (status != EFI_SUCCESS)
+ if (status != EFI_SUCCESS) {
+ ST->ConOut->OutputString(ST->ConOut, L"Failed to allocate memory for heap.\r\n");
BS->Exit(IH, status, 0, NULL);
+ }
setheap((void *)(uintptr_t)heap, (void *)(uintptr_t)(heap + heapsize));
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, May 8, 12:43 PM (7 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28606326
Default Alt Text
D17958.1778244233.diff (598 B)
Attached To
Mode
D17958: Print an error message in efi_main.c if we can't allocate memory for the heap.
Attached
Detach File
Event Timeline
Log In to Comment