Commit fd2c903b authored by Al Viro's avatar Al Viro Committed by Linus Torvalds

[PATCH] m32r: more __user annotations

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 12ea59e8
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
/* /*
* sys_tas() - test-and-set * sys_tas() - test-and-set
*/ */
asmlinkage int sys_tas(int *addr) asmlinkage int sys_tas(int __user *addr)
{ {
int oldval; int oldval;
...@@ -90,7 +90,7 @@ sys_pipe(unsigned long r0, unsigned long r1, unsigned long r2, ...@@ -90,7 +90,7 @@ sys_pipe(unsigned long r0, unsigned long r1, unsigned long r2,
error = do_pipe(fd); error = do_pipe(fd);
if (!error) { if (!error) {
if (copy_to_user((void *)r0, (void *)fd, 2*sizeof(int))) if (copy_to_user((void __user *)r0, fd, 2*sizeof(int)))
error = -EFAULT; error = -EFAULT;
} }
return error; return error;
...@@ -201,7 +201,7 @@ asmlinkage int sys_ipc(uint call, int first, int second, ...@@ -201,7 +201,7 @@ asmlinkage int sys_ipc(uint call, int first, int second,
} }
} }
asmlinkage int sys_uname(struct old_utsname * name) asmlinkage int sys_uname(struct old_utsname __user * name)
{ {
int err; int err;
if (!name) if (!name)
......
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