[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>

authored by Olaf Hering and committed by Paul Mackerras ed1189b7 48abec07

+1 -1
+1 -1
arch/powerpc/kernel/prom_init.c
··· 265 va_end(list); 266 267 for (i = 0; i < nret; i++) 268 - rets[nargs+i] = 0; 269 270 if (enter_prom(&args, RELOC(prom_entry)) < 0) 271 return PROM_ERROR;
··· 265 va_end(list); 266 267 for (i = 0; i < nret; i++) 268 + args.args[nargs+i] = 0; 269 270 if (enter_prom(&args, RELOC(prom_entry)) < 0) 271 return PROM_ERROR;