prom_init: memset, wrong size

Domen Puncer domen at coderock.org
Sun Jun 5 00:19:18 EST 2005


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?


	Domen



More information about the Linuxppc64-dev mailing list