Skip to content

Commit

Permalink
[PATCH] powerpc: prevent stack corruption in call_prom_ret
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Olaf Hering authored and Paul Mackerras committed Nov 30, 2005
1 parent 48abec0 commit ed1189b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/kernel/prom_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ed1189b

Please sign in to comment.