diff options
author | Li Zefan <lizf@cn.fujitsu.com> | 2007-11-05 03:21:56 +0100 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-11-08 04:15:33 +0100 |
commit | aca71ef8827d11de243e30f170cfc126376803b4 (patch) | |
tree | 74929bba8aaea1fe30f12f662df9f02b53c57506 /arch/powerpc/kernel/prom_init.c | |
parent | [POWERPC] Fix link errors for allyesconfig (diff) | |
download | linux-aca71ef8827d11de243e30f170cfc126376803b4.tar.xz linux-aca71ef8827d11de243e30f170cfc126376803b4.zip |
[POWERPC] ] Fix memset size error
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>
Diffstat (limited to 'arch/powerpc/kernel/prom_init.c')
-rw-r--r-- | arch/powerpc/kernel/prom_init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/prom_init.c b/arch/powerpc/kernel/prom_init.c index 1db10f70ae69..1add6efdb315 100644 --- a/arch/powerpc/kernel/prom_init.c +++ b/arch/powerpc/kernel/prom_init.c @@ -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) { |