diff options
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) | |||
1244 | local_alloc_bottom = base; | 1244 | local_alloc_bottom = base; |
1245 | 1245 | ||
1246 | /* It seems OF doesn't null-terminate the path :-( */ | 1246 | /* It seems OF doesn't null-terminate the path :-( */ |
1247 | memset(path, 0, sizeof(path)); | 1247 | memset(path, 0, PROM_SCRATCH_SIZE); |
1248 | /* Call OF to setup the TCE hardware */ | 1248 | /* Call OF to setup the TCE hardware */ |
1249 | if (call_prom("package-to-path", 3, 1, node, | 1249 | if (call_prom("package-to-path", 3, 1, node, |
1250 | path, PROM_SCRATCH_SIZE-1) == PROM_ERROR) { | 1250 | path, PROM_SCRATCH_SIZE-1) == PROM_ERROR) { |