diff options
author | Olaf Hering <olh@suse.de> | 2005-11-29 14:04:05 +0100 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2005-11-30 03:55:59 +0100 |
commit | ed1189b7e8cd8144f0b232c220aed4ee26d89463 (patch) | |
tree | ec9cd615f8915c4bb43c7844984da08982795b97 /arch/powerpc | |
parent | powerpc: Fix bug causing FP registers corruption on UP + preempt (diff) | |
download | linux-ed1189b7e8cd8144f0b232c220aed4ee26d89463.tar.xz linux-ed1189b7e8cd8144f0b232c220aed4ee26d89463.zip |
[PATCH] powerpc: prevent stack corruption in call_prom_ret
Use the correct pointer to clear the memory of the return values,
to prevent stack corruption in the callers stackframe.
Signed-off-by: Olaf Hering <olh@suse.de>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc')
-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 4ce0105c308e..bcdc209dca85 100644 --- a/arch/powerpc/kernel/prom_init.c +++ b/arch/powerpc/kernel/prom_init.c @@ -265,7 +265,7 @@ static int __init call_prom_ret(const char *service, int nargs, int nret, va_end(list); for (i = 0; i < nret; i++) - rets[nargs+i] = 0; + args.args[nargs+i] = 0; if (enter_prom(&args, RELOC(prom_entry)) < 0) return PROM_ERROR; |