Skip to content

Commit

Permalink
[POWERPC] ] Fix memset size error
Browse files Browse the repository at this point in the history
The size passing to memset is wrong.

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

Signed-off-by: Paul Mackerras <paulus@samba.org>
  • Loading branch information
Li Zefan authored and Paul Mackerras committed Nov 8, 2007
1 parent e95c918 commit aca71ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/kernel/prom_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit aca71ef

Please sign in to comment.