Skip to contentSkip to conversation

ELI uninitialized variable bug

Linux-ia64 Andreas Schwab 1 participant 1 message Jun 30, 2000

lore
Share & tools
lore
#0 lore raw

This patch fixes an uninitialized variable in eli-0.4.0, when no initrd was requested.

eli.c +3 -0
@@ -1242,6 +1242,9 @@
 		case EFI_LOAD_ERROR:
 			goto free_kernel_image;
 		}
+	} else {
+		initrd.start_addr = 0;
+		initrd.pages = 0;
 	}
 
 	/* Must free the ACPI before creating the boot params so the */

Andres.

Signature · 4 lines
Andreas Schwab                                  "And now for something
SuSE Labs                                        completely different."
[email protected]
SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg