Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 218542
b: refs/heads/master
c: 9f29b8f
h: refs/heads/master
v: v3
  • Loading branch information
Namhyung Kim authored and Linus Torvalds committed Oct 28, 2010
1 parent 6e7e09c commit 50c0f2e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: b640a0d192265c47bbf60951115bdb59d2c017d1
refs/heads/master: 9f29b8fb416a0ad49d5077ab10ed780efdfcb126
8 changes: 4 additions & 4 deletions trunk/arch/avr32/kernel/ptrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ long arch_ptrace(struct task_struct *child, long request,
unsigned long addr, unsigned long data)
{
int ret;
void __user *datap = (void __user *) data;

switch (request) {
/* Read the word at location addr in the child process */
Expand All @@ -159,8 +160,7 @@ long arch_ptrace(struct task_struct *child, long request,
break;

case PTRACE_PEEKUSR:
ret = ptrace_read_user(child, addr,
(unsigned long __user *)data);
ret = ptrace_read_user(child, addr, datap);
break;

/* Write the word in data at location addr */
Expand All @@ -174,11 +174,11 @@ long arch_ptrace(struct task_struct *child, long request,
break;

case PTRACE_GETREGS:
ret = ptrace_getregs(child, (void __user *)data);
ret = ptrace_getregs(child, datap);
break;

case PTRACE_SETREGS:
ret = ptrace_setregs(child, (const void __user *)data);
ret = ptrace_setregs(child, datap);
break;

default:
Expand Down

0 comments on commit 50c0f2e

Please sign in to comment.