[PATCH] s390 misc __user annotations
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
@@ -122,8 +122,8 @@ out:
|
|||||||
#ifndef CONFIG_64BIT
|
#ifndef CONFIG_64BIT
|
||||||
struct sel_arg_struct {
|
struct sel_arg_struct {
|
||||||
unsigned long n;
|
unsigned long n;
|
||||||
fd_set *inp, *outp, *exp;
|
fd_set __user *inp, *outp, *exp;
|
||||||
struct timeval *tvp;
|
struct timeval __user *tvp;
|
||||||
};
|
};
|
||||||
|
|
||||||
asmlinkage long old_select(struct sel_arg_struct __user *arg)
|
asmlinkage long old_select(struct sel_arg_struct __user *arg)
|
||||||
|
@@ -486,7 +486,7 @@ asmlinkage void illegal_op(struct pt_regs * regs, long interruption_code)
|
|||||||
info.si_signo = signal;
|
info.si_signo = signal;
|
||||||
info.si_errno = 0;
|
info.si_errno = 0;
|
||||||
info.si_code = ILL_ILLOPC;
|
info.si_code = ILL_ILLOPC;
|
||||||
info.si_addr = (void *) location;
|
info.si_addr = (void __user *) location;
|
||||||
do_trap(interruption_code, signal,
|
do_trap(interruption_code, signal,
|
||||||
"illegal operation", regs, &info);
|
"illegal operation", regs, &info);
|
||||||
}
|
}
|
||||||
|
@@ -61,7 +61,7 @@
|
|||||||
#define segment_eq(a,b) ((a).ar4 == (b).ar4)
|
#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;
|
return 1;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user