summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorLi Zefan <lizf@cn.fujitsu.com>2007-11-05 02:21:56 (GMT)
committerPaul Mackerras <paulus@samba.org>2007-11-08 03:15:33 (GMT)
commitaca71ef8827d11de243e30f170cfc126376803b4 (patch)
tree74929bba8aaea1fe30f12f662df9f02b53c57506 /arch
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')
-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 1db10f7..1add6ef 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) {