Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 108126
b: refs/heads/master
c: b79998f
h: refs/heads/master
v: v3
  • Loading branch information
Nathan Fontenot authored and Paul Mackerras committed Aug 11, 2008
1 parent 8af4b6c commit 6fe4da2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9ea7d5ad84d61a4e8b892d5ed12ccc26f9d6351b
refs/heads/master: b79998fc2e1144919b6b02acbd407a5db1f80ac0
5 changes: 3 additions & 2 deletions trunk/arch/powerpc/kernel/rtas.c
Original file line number Diff line number Diff line change
Expand Up @@ -792,6 +792,9 @@ asmlinkage int ppc_rtas(struct rtas_args __user *uargs)
if (args.token == RTAS_UNKNOWN_SERVICE)
return -EINVAL;

args.rets = &args.args[nargs];
memset(args.rets, 0, args.nret * sizeof(rtas_arg_t));

/* Need to handle ibm,suspend_me call specially */
if (args.token == ibm_suspend_me_token) {
rc = rtas_ibm_suspend_me(&args);
Expand All @@ -808,8 +811,6 @@ asmlinkage int ppc_rtas(struct rtas_args __user *uargs)
enter_rtas(__pa(&rtas.args));
args = rtas.args;

args.rets = &args.args[nargs];

/* A -1 return code indicates that the last command couldn't
be completed due to a hardware error. */
if (args.rets[0] == -1)
Expand Down

0 comments on commit 6fe4da2

Please sign in to comment.