Skip to contentSkip to conversation

s390 misc __user annotations

PATCH In review Al Viro 1 participant 1 message Feb 8, 2006 s390

lore
Share & tools
lore

Al Viro

author
#0 lore raw

PATCH 9/17 s390 misc __user annotations

Date: 1138794959 -0500

---

 arch/s390/kernel/sys_s390.c |    4 ++--
 arch/s390/kernel/traps.c    |    2 +-
 include/asm-s390/uaccess.h  |    2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

793af244090ccb5f99091c5a999ce97e4d017834

arch/s390/kernel/sys_s390.c +2 -2
index 6a63553..e351780 100644
@@ -122,8 +122,8 @@ out:
 #ifndef CONFIG_64BIT
 struct sel_arg_struct {
 	unsigned long n;
-	fd_set *inp, *outp, *exp;
-	struct timeval *tvp;
+	fd_set __user *inp, *outp, *exp;
+	struct timeval __user *tvp;
 };
 
 asmlinkage long old_select(struct sel_arg_struct __user *arg)
arch/s390/kernel/traps.c +1 -1
index 5d21e9e..a46793b 100644
@@ -486,7 +486,7 @@ asmlinkage void illegal_op(struct pt_reg
 		info.si_signo = signal;
 		info.si_errno = 0;
 		info.si_code = ILL_ILLOPC;
-		info.si_addr = (void *) location;
+		info.si_addr = (void __user *) location;
 		do_trap(interruption_code, signal,
 			"illegal operation", regs, &info);
 	}
include/asm-s390/uaccess.h +1 -1
index be104f2..e2c73b4 100644
@@ -61,7 +61,7 @@
 #define segment_eq(a,b) ((a).ar4 == (b).ar4)
 
 
-static inline int __access_ok(const void *addr, unsigned long size)
+static inline int __access_ok(const void __user *addr, unsigned long size)
 {
 	return 1;
 }
Signature · 1 line
0.99.9.GIT