Skip to contentSkip to conversation

m32r: more __user annotations

PATCH New Al Viro 1 participant 1 message Oct 11, 2006

lore
Share & tools
lore

Al Viro

author
#0 lore raw

PATCH 1/1 m32r: more __user annotations

---
 arch/m32r/kernel/sys_m32r.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
arch/m32r/kernel/sys_m32r.c +3 -3
index b567351..b4e7bcb 100644
@@ -31,7 +31,7 @@ #include <asm/unistd.h>
 /*
  * sys_tas() - test-and-set
  */
-asmlinkage int sys_tas(int *addr)
+asmlinkage int sys_tas(int __user *addr)
 {
 	int oldval;
 
@@ -90,7 +90,7 @@ sys_pipe(unsigned long r0, unsigned long
 
 	error = do_pipe(fd);
 	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;
 	}
 	return error;
@@ -201,7 +201,7 @@ asmlinkage int sys_ipc(uint call, int fi
 	}
 }
 
-asmlinkage int sys_uname(struct old_utsname * name)
+asmlinkage int sys_uname(struct old_utsname __user * name)
 {
 	int err;
 	if (!name)
Signature · 1 line
1.4.2.GIT