summaryrefslogtreecommitdiff
path: root/arch/powerpc/kernel/prom_init.c
diff options
context:
space:
mode:
authorLi Zefan <lizf@cn.fujitsu.com>2007-11-05 05:21:56 +0300
committerPaul Mackerras <paulus@samba.org>2007-11-08 06:15:33 +0300
commitaca71ef8827d11de243e30f170cfc126376803b4 (patch)
tree74929bba8aaea1fe30f12f662df9f02b53c57506 /arch/powerpc/kernel/prom_init.c
parente95c91821fa56b489d7beb74103a419466c5ec10 (diff)
downloadlinux-aca71ef8827d11de243e30f170cfc126376803b4.tar.xz
[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.c2
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) {