Page MenuHomeFreeBSD

D58068.id181658.diff
No OneTemporary

D58068.id181658.diff

diff --git a/stand/efi/loader/memdisk.c b/stand/efi/loader/memdisk.c
--- a/stand/efi/loader/memdisk.c
+++ b/stand/efi/loader/memdisk.c
@@ -50,11 +50,15 @@
dl_state *ctx = Context;
decomp_state *dctx = ctx->dctx;
+ if (FileOffset == 0 && BufferLength == 0) {
+ printf("Staritng the download\n");
+ return (EFI_SUCCESS);
+ }
+
/*
- * Make a note of the size when we're hinted about it. But once
- * we start the download, ignore the hints.
+ * Make a note of the size when we're hinted about it.
*/
- if (ctx->size == 0 && BufferLength == 0) {
+ if (BufferLength == 0) {
printf("We know we will download %llu bytes\n", ULL(FileOffset));
ctx->size = FileOffset;
ctx->status = EFI_SUCCESS;

File Metadata

Mime Type
text/plain
Expires
Mon, Aug 31, 4:25 PM (2 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34829989
Default Alt Text
D58068.id181658.diff (712 B)

Event Timeline