Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 258923
b: refs/heads/master
c: 0d0138e
h: refs/heads/master
i:
  258921: e583987
  258919: c71623c
v: v3
  • Loading branch information
Dan Rosenberg authored and Linus Torvalds committed Jul 26, 2011
1 parent 768d308 commit 176c359
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 67db392d1124e14684e23deb572de2a63b9b3b69
refs/heads/master: 0d0138ebe24b94065580bd2601f8bb7eb6152f56
3 changes: 3 additions & 0 deletions trunk/arch/xtensa/kernel/ptrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,9 @@ int ptrace_setxregs(struct task_struct *child, void __user *uregs)
elf_xtregs_t *xtregs = uregs;
int ret = 0;

if (!access_ok(VERIFY_READ, uregs, sizeof(elf_xtregs_t)))
return -EFAULT;

#if XTENSA_HAVE_COPROCESSORS
/* Flush all coprocessors before we overwrite them. */
coprocessor_flush_all(ti);
Expand Down

0 comments on commit 176c359

Please sign in to comment.