Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 298541
b: refs/heads/master
c: 5a4f5da
h: refs/heads/master
i:
  298539: 42b1f31
v: v3
  • Loading branch information
Will Deacon authored and Russell King committed Mar 30, 2012
1 parent 85775e6 commit 335fe5c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 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: fa0d1dbf7fb6b6f1af85d298a4054fe9edc914c9
refs/heads/master: 5a4f5da543b169d555a19e889850780ddceb8f98
4 changes: 3 additions & 1 deletion trunk/arch/arm/kernel/ptrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ static int ptrace_read_user(struct task_struct *tsk, unsigned long off,
{
unsigned long tmp;

if (off & 3 || off >= sizeof(struct user))
if (off & 3)
return -EIO;

tmp = 0;
Expand All @@ -268,6 +268,8 @@ static int ptrace_read_user(struct task_struct *tsk, unsigned long off,
tmp = tsk->mm->end_code;
else if (off < sizeof(struct pt_regs))
tmp = get_user_reg(tsk, off >> 2);
else if (off >= sizeof(struct user))
return -EIO;

return put_user(tmp, ret);
}
Expand Down

0 comments on commit 335fe5c

Please sign in to comment.