Re: initrd_size inflation breaks initramfs

From: Andreas Schwab <schwab_at_suse.de>
Date: 2005-11-28 20:44:25
dann frazier <dannf@hp.com> writes:

> My guess is that this is a bug in elilo.

Try this patch:

--- initrd.c
+++ initrd.c
@@ -94,6 +94,9 @@
 
 	initrd->start_addr = start_addr;
 
+	/* Clear extra memory since we don't pass the exact size.  */
+	Memset(start_addr + size, 0, (pgcnt << EFI_PAGE_SHIFT) - size);
+
 	return ELILO_LOAD_SUCCESS;
 
 error:

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."
-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Mon Nov 28 20:45:03 2005

This archive was generated by hypermail 2.1.8 : 2005-11-28 20:45:11 EST