Commit 7683f744 authored by Heiko Carstens's avatar Heiko Carstens

[S390] uaccess: turn __access_ok() into a define

Turn __access_ok() into a define and add a __chk_user_ptr() call
instead.
Signed-off-by: default avatarHeiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent d7b250e2
...@@ -49,12 +49,13 @@ ...@@ -49,12 +49,13 @@
#define segment_eq(a,b) ((a).ar4 == (b).ar4) #define segment_eq(a,b) ((a).ar4 == (b).ar4)
#define __access_ok(addr, size) \
({ \
__chk_user_ptr(addr); \
1; \
})
static inline int __access_ok(const void __user *addr, unsigned long size) #define access_ok(type, addr, size) __access_ok(addr, size)
{
return 1;
}
#define access_ok(type,addr,size) __access_ok(addr,size)
/* /*
* The exception table consists of pairs of addresses: the first is the * The exception table consists of pairs of addresses: the first is the
......
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