diff options
author | Al Viro <viro@ftp.linux.org.uk> | 2006-10-11 12:24:55 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-11 14:17:06 -0400 |
commit | fd2c903b89a6c3cec9388eb24a134ebc1be20747 (patch) | |
tree | 497a3944481290d120052de53ac869eab89d6463 /arch/m32r/kernel/sys_m32r.c | |
parent | 12ea59e8109d7192ecb2ac994588e24b11ab0428 (diff) |
[PATCH] m32r: more __user annotations
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/m32r/kernel/sys_m32r.c')
-rw-r--r-- | arch/m32r/kernel/sys_m32r.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/m32r/kernel/sys_m32r.c b/arch/m32r/kernel/sys_m32r.c index b567351f3c52..b4e7bcb43540 100644 --- a/arch/m32r/kernel/sys_m32r.c +++ b/arch/m32r/kernel/sys_m32r.c | |||
@@ -31,7 +31,7 @@ | |||
31 | /* | 31 | /* |
32 | * sys_tas() - test-and-set | 32 | * sys_tas() - test-and-set |
33 | */ | 33 | */ |
34 | asmlinkage int sys_tas(int *addr) | 34 | asmlinkage int sys_tas(int __user *addr) |
35 | { | 35 | { |
36 | int oldval; | 36 | int oldval; |
37 | 37 | ||
@@ -90,7 +90,7 @@ sys_pipe(unsigned long r0, unsigned long r1, unsigned long r2, | |||
90 | 90 | ||
91 | error = do_pipe(fd); | 91 | error = do_pipe(fd); |
92 | if (!error) { | 92 | if (!error) { |
93 | if (copy_to_user((void *)r0, (void *)fd, 2*sizeof(int))) | 93 | if (copy_to_user((void __user *)r0, fd, 2*sizeof(int))) |
94 | error = -EFAULT; | 94 | error = -EFAULT; |
95 | } | 95 | } |
96 | return error; | 96 | return error; |
@@ -201,7 +201,7 @@ asmlinkage int sys_ipc(uint call, int first, int second, | |||
201 | } | 201 | } |
202 | } | 202 | } |
203 | 203 | ||
204 | asmlinkage int sys_uname(struct old_utsname * name) | 204 | asmlinkage int sys_uname(struct old_utsname __user * name) |
205 | { | 205 | { |
206 | int err; | 206 | int err; |
207 | if (!name) | 207 | if (!name) |