aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/prom_init.c
diff options
context:
space:
mode:
authorPaul Mackerras <paulus@samba.org>2005-10-10 08:57:03 -0400
committerPaul Mackerras <paulus@samba.org>2005-10-10 08:57:03 -0400
commitc5200c90db3823a6e2f529acf202c4aed04966ae (patch)
tree823caccd6dd7d7bf90d5f0c33704622cc41f106e /arch/powerpc/kernel/prom_init.c
parenteef289f79c03ba5ca197e2ac1e33906175f01c39 (diff)
powerpc: Fix off-by-one error in prom_init.c
This was preventing us from recognizing that we did actually instantiate RTAS successfully on pSeries. Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/kernel/prom_init.c')
-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 75dc7f3714bd..911a803f27da 100644
--- a/arch/powerpc/kernel/prom_init.c
+++ b/arch/powerpc/kernel/prom_init.c
@@ -268,7 +268,7 @@ static int __init call_prom_ret(const char *service, int nargs, int nret,
268 268
269 if (rets != NULL) 269 if (rets != NULL)
270 for (i = 1; i < nret; ++i) 270 for (i = 1; i < nret; ++i)
271 rets[i] = args.args[nargs+i]; 271 rets[i-1] = args.args[nargs+i];
272 272
273 return (nret > 0) ? args.args[nargs] : 0; 273 return (nret > 0) ? args.args[nargs] : 0;
274} 274}