projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eef289f
)
powerpc: Fix off-by-one error in prom_init.c
author
Paul Mackerras
<paulus@samba.org>
Mon, 10 Oct 2005 12:57:03 +0000
(22:57 +1000)
committer
Paul Mackerras
<paulus@samba.org>
Mon, 10 Oct 2005 12:57:03 +0000
(22:57 +1000)
This was preventing us from recognizing that we did actually
instantiate RTAS successfully on pSeries.
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/prom_init.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/powerpc/kernel/prom_init.c
b/arch/powerpc/kernel/prom_init.c
index 75dc7f3714bd767a1e7a82dc2a8d5c77baeab479..911a803f27da210bfc81c7e6879c7b32dcb3b998 100644
(file)
--- 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,
if (rets != NULL)
for (i = 1; i < nret; ++i)
- rets[i] = args.args[nargs+i];
+ rets[i
-1
] = args.args[nargs+i];
return (nret > 0) ? args.args[nargs] : 0;
}