Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aca71ef8 authored by Li Zefan's avatar Li Zefan Committed by Paul Mackerras
Browse files

[POWERPC] ] Fix memset size error



The size passing to memset is wrong.

Signed-off-by Li Zefan <lizf@cn.fujitsu.com>
Acked-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>

Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent e95c9182
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1244,7 +1244,7 @@ static void __init prom_initialize_tce_table(void)
			local_alloc_bottom = base;

		/* It seems OF doesn't null-terminate the path :-( */
		memset(path, 0, sizeof(path));
		memset(path, 0, PROM_SCRATCH_SIZE);
		/* Call OF to setup the TCE hardware */
		if (call_prom("package-to-path", 3, 1, node,
			      path, PROM_SCRATCH_SIZE-1) == PROM_ERROR) {