prom_init: memset, wrong size

Benjamin Herrenschmidt benh at kernel.crashing.org
Sun Jun 5 08:56:23 EST 2005


On Sat, 2005-06-04 at 16:19 +0200, Domen Puncer wrote:
> Hi.
> 
> I noticed this in arch/ppc64/kernel/prom_init.c:1041:
> 	memset(path, 0, sizeof(path));
> 
> path is defined as:
> 	char *path = RELOC(prom_scratch);
> 
> So sizeof(*char) should probably be PROM_SCRATCH_SIZE, right?

True, though probably harmless too. I'll send a fix.

Ben.





More information about the Linuxppc64-dev mailing list