Commit 4aae9234 authored by Russell King's avatar Russell King

[ARM] Add two more missing __user annotations for sparse.

parent 6de48267
...@@ -622,7 +622,7 @@ static int do_ptrace(int request, struct task_struct *child, long addr, long dat ...@@ -622,7 +622,7 @@ static int do_ptrace(int request, struct task_struct *child, long addr, long dat
ret = access_process_vm(child, addr, &tmp, ret = access_process_vm(child, addr, &tmp,
sizeof(unsigned long), 0); sizeof(unsigned long), 0);
if (ret == sizeof(unsigned long)) if (ret == sizeof(unsigned long))
ret = put_user(tmp, (unsigned long *) data); ret = put_user(tmp, (unsigned long __user *) data);
else else
ret = -EIO; ret = -EIO;
break; break;
......
...@@ -564,10 +564,10 @@ static int do_signal(sigset_t *oldset, struct pt_regs *regs, int syscall) ...@@ -564,10 +564,10 @@ static int do_signal(sigset_t *oldset, struct pt_regs *regs, int syscall)
regs->ARM_r7 = __NR_restart_syscall; regs->ARM_r7 = __NR_restart_syscall;
regs->ARM_pc -= 2; regs->ARM_pc -= 2;
} else { } else {
u32 *usp; u32 __user *usp;
regs->ARM_sp -= 12; regs->ARM_sp -= 12;
usp = (u32 *)regs->ARM_sp; usp = (u32 __user *)regs->ARM_sp;
put_user(regs->ARM_pc, &usp[0]); put_user(regs->ARM_pc, &usp[0]);
/* swi __NR_restart_syscall */ /* swi __NR_restart_syscall */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment